Re: jsp -> string ?

2003-09-10 Thread Bill Barker
Can be done.  This example should get you started.
   public class MyEmailResponse extends HttpServletResponseWrapper {
  Writer out;
   public MyEmailResponse(HttpServletResponse res) {
 super(res);
 out = new StringWriter();
   }
   public Writer getWriter() {
  return out;
   }
   // You may need to override some other methods here
  };

Then in your servlet:

  MyEmailResponse mer = new MyEmailResponse(response);
  RequestDispatcher rd =
getServletContext().getRequestDispatcher("/myEmail.jsp");
  rd.include(request, mer);
  mer.flushBuffer();
  StringWriter sw = (StringWriter)mer.getWriter();
  String emailMessage = sw.toString();

"Andoni" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,

I have written a little method for my servlet that let's me know when
something goes wrong.  It sends me an email the body of which is a simple
java.lang.String.  This is easy as I cut mostly from a book I have ;-)

Anyway, my question now is, I want to have my RequestDipatcher fill out a
jsp page and send this as the body of the email.  Can anyone tell me how to
achieve this?

How do I convert the .jsp with all it's parameters filled in, into a
java.lang.String?

My thanks in advance,

Andoni.





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



Authentication in tomcat 4.1.27

2003-09-10 Thread Shailesh Modi
Hi,
 I am migrating my web application to 4.1.27 from tomcat 3 .


 In tomcat 3 , I had following code for authentication in server.xml.

 ldap://ldap.mycompany.com:389";
  baseDn="ou=active,ou=employees,ou=people,o=mycompany.com"
  maxDnAge="300"
  maxPwAge="6000"
  maxFilterAge="6000"
 />

where as 'com.remind.securetomcat.SecRealm' is my class to authenticate user
by my company's ldap.
 com.remind.securetomcat.SecRealm class extends tomcat's
org.apache.tomcat.core.BaseInterceptor' , which is not present in tomcat
4.1.27 .

 What changes are required to make authentication work in server.xml in
tomcat 4.1.27 configuration
 to make this work?


Thanks and Regards
Shailesh


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



Tomcat,

2003-09-10 Thread Oliver Wulff




Hi

I noticed that there is an additional tomcat version for jdk 1.4. The
common\endorsed directory is empty where the xerces jars exist on the other
tomcat version. What's the meaning of the endorsed directory? What would
happen when I copy the context of the endorsed directory to the lib
directory?

Regards
Oliver







*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.


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



Re: JK2 Question...

2003-09-10 Thread Bill Barker
I vaguely remember that there was/is a bug in Jk2 with using ports > 32K (a
signed vs. unsigned thing).  Can you try with a port < 32K?

"Richard Norman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have read the information and configured my server as specified at the
> following URL...
>
>
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/installhowto.html
>
> The thing I think is going on is that the port is not open fully cause
every
> time I try to connect to a JSP page from IIS, I get the "Can not find
server
> or DNS Error" message. If I go directly to tomcat on the port I set up,
> everything works (4). in the startup sequence it says in the log file
> the following
>
> *
> INFO: Starting Coyote HTTP/1.1 on port 4
> Sep 10, 2003 1:22:09 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:40100
> Sep 10, 2003 1:22:09 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/250
> config=C:\Tomcat\Tomcat-5.0\conf\jk2.properties
> Sep 10, 2003 1:22:09 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 6797 ms
> *
>
> Here is my workers2.properties file
> *
> [channel.socket:localhost:40100]
> port=40100
> host=127.0.0.1
>
> # define the worker
> [ajp13:localhost:40100]
> channel=channel.socket:localhost:40100
>
> # Map the Tomcat examples webapp to the Web server uri space
> [uri:/jsp-examples/*]
> info=Map the whole webapp
> *
>
> Here is my jk2.properties file
> *
> # Set the desired handler list
> handler.list=request,channelSocket
> #
> # Override the default port for the socketChannel
> channelSocket.port=40100
> channelSocket.address=127.0.0.1
>
> request.tomcatAuthentication=true
> *
>
> and here is the connector entry in my server.xml file
> *
>  protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> redirectPort="8443">
> 
> *
> Any ideas anyone?  THis is the last step to get everything working 100%
for
> me...
>
> Richard Norman
> Web/Application Developer
>
> _
> Compare Cable, DSL or Satellite plans: As low as $29.95.
> https://broadband.msn.com




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



Re: NullPointer on getParameter

2003-09-10 Thread Bill Barker
I just got a ton of these while doing a stress-test to try and get another
bug to crawl out from under it's rock ;-).  I believe that there is a bug
here somewhere, but I'm currently chasing bug #1.  If your server logs are
more interesting than mine (which don't say much more than NPE at ...),
could you at least post them as an attachment to a bugzilla report?

"Laurie Harper" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Agreed :-) But understanding the life cycle of CoyoteRequestFacade may
> make it easier to do so. There's nothing particularly funky going on in
> the code that's exhibiting the problem so I don't know yet what I can
> pare away. I'm trying to get a local build of Tomcat set up so I can add
> some tracing and narrow things down.
>
> L.
>
> Shapira, Yoav wrote:
>
> > Howdy,
> > The best thing is to come up with a way for us to reproduce it.  The
> > simplest, most direct way to get the exception.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> >
> >>-Original Message-
> >>From: Laurie Harper [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, September 09, 2003 6:17 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: NullPointer on getParameter
> >>
> >>Hi, I'm trying to figure out a problem we've encountered since
> >
> > upgrading
> >
> >>to Tomcat 4.1. I've seen this both on 4.1.24 and 4.1.27. I haven't yet
> >>reduced it to a specific recipe for reproduction outside the context of
> >>my application but I do see this quite frequently so I thought I'd see
> >>if anyone else has come across it...
> >>
> >>The problem is that a call to getParameter is getting a
> >>NullPointerException in the delegation method on CoyoteRequestFacade:
> >>
> >>Caused by:
> >>java.lang.NullPointerException
> >>at org.apache.coyote.tomcat4.CoyoteRequestFacade.
> >>getParameter(CoyoteRequestFacade.java:178)
> >>at javax.servlet.ServletRequestWrapper.
> >>getParameter(ServletRequestWrapper.java:203)
> >>
> >>I checked the code and line 178 just a call to the wrapped
> >
> > CoyoteRequest
> >
> >>object, meaning that reference is null. Now, there's only two ways it
> >>could be null: a null reference was passed into CoyoteRequestFacade's
> >>constructor, or CoyoteRequestFacade.clear() was called.
> >>
> >>As I understand it, a CoyoteRequestFacade should be associated with a
> >>request when it starts and not released until the request has completed
> >>so I'm leaning towards looking at the first possibility. Can anyone
> >
> > give
> >
> >>me an overview of the 'life cycle' of CoyoteRequestFacade? Where is it
> >>created, managed, assigned/reclaimed from a particular request, etc?
> >>
> >>Better yet, has anyone run into this and found a solution? The nearest
> >>thing I could find was Bug# 21611 which sounds like the same problem.
> >>From the commentary, it doesn't look like there's a known cause yet;
> >>what would be the best way to track this down (as I say, I can
> >
> > reproduce
> >
> >>the behaviour easily here)?
> >>
> >>Thanks,
> >>
> >>L.
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.




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



Re: SSL Apache/Tomcat encrypting a subdirectory

2003-09-10 Thread Bill Barker
Easiest is probably to use a:
  
 
SSL area
/online/*
 
 
INTEGRAL
 
  

in your web.xml file.  An alternative methed for your config would be:
  RewriteRule /online/.* https://my.server.name/online/$1 [R]

"Kai Schliemann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello list,
>
> I have the following problem:
>
> I'm running Apache 1.3.27 on Suse Linux 8.2 (Server 1) and Tomcat 4.1.24
on
> Suse Linux 8.2 (Server 2).
> I'm using mod_jk as connector for Apache/Tomcat which works fine without
> SSL-configuration.
>
> My JAVA-Webapp is running on Tomcat (Server 2).
> I can connect to my JAVA-Webapp through the URL http://www.foo.com/.
> Now I want a subdirectory (online) of this webapp to run in ssl-mode (e.g.
> https://www.foo.com/online/).
> I just want the directory "online" (and all of its subdirectories) to be
> ssl-encrypted not the complete domain "www.foo.com".
>
> How can I do that?
>
> Thanks in advance.
>
> Kai




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



Re: jsp 1.2 and escaping quote marks

2003-09-10 Thread Bill Barker
Does this work:
  

"Rich Unger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 
> http://java.sun.com/JSP/Page"; version="1.2">
>
>   
>   
>   
>
> 
>
> All 3 of these lines cause compile errors.  I'm using XSLT to generate
> files which _may_ be JSP files (they may be static files, it's determined
> when the xslt runs).  Because of this, I'm not particularly enthused about
> manually sticking backslashes in front of my quote characters.
>
> What I want to know is, how does tomcat 4 know to escape the quote marks
> around foo.jpg, as in:
>
>   out.write("");
>
> ...but not around "quoted"?  Is it a bug, or is this an expected compile
> error in my jsp?
>
> Thanks,
> Rich




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



RE: Who serves static content Tomcat or Apache?

2003-09-10 Thread Ralph Einfeldt
It depends on the configuration.

I guess that you are talking about apache and tomcat 
on different maschines (server is a bit ambigous).

In that scenario you either have to setup mod_jk to serve 
the static files, or you have to mount (on the os level)
the document root from server B to the document root of 
server A and let apache serve the content.

> -Original Message-
> From: Kai Schliemann [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 10, 2003 9:16 PM
> To: [EMAIL PROTECTED]
> Subject: Who serves static content Tomcat or Apache?
> 
> 
> Assuming, I have Server A with Apache and Server B with 
> Tomcat and they are
> connected via mod_jk and on Server B are static (html)-files. 
> Which server
> handles these files?
> 

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



[OT]Re: Mobile phone on serial port - Howto send sms?

2003-09-10 Thread Kwok Peng Tuck
Another option is available to you John-Paul, specifically, 
http://www.kannel.org which is a wap and sms gateway.
This gateway is based on linux although you can use cygwin to compile 
and run it, far from ideal but it does work
and is usable enough for testing.  The gateway does support most GSM 
modems and supports other major protocols like
SMPP, CIMD... for connecting to telcos. Once you set it up you can send 
sms through it's http interface. So from your servlet or business logic 
class, just
make a http call to the gateway with the correct parameters and your sms 
will be sent of.

A library like commons http-client  will be quite useful in this case.
FYI : kannel is open source.
Sai Sivanesan wrote:

we have an affilliate company that has a product comming on the market that
uses a Nokia 30 or Nokia 31 GSM modem(phone without a headset and with a rs232
port) and does exactly that.  we have a client server version comming out - i
will ask how its done - can't be too difficult as the app is mostly a vb
piece.  as long as i am not going to give away anything to proprietary i'll
share it - why do you want to use a serial conection - do you need to receive
sms msgs as well as send?  cause if all you need to do is send, why don't you
just dispatch it as an email?
Sai.

On Wed, 10 Sep 2003 23:34:51 -0100 (GMT+1), john-paul delaney wrote
 

Hello List... this is a tricky one I believe,

Serial port-connected mobile phone - I'd like to find out how to 
send sms messages using tomcat on linux.  Anyone got any leads? 

I'd appreciate any help.

thanks,
/j-p.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



--
Open WebMail Project (http://openwebmail.org)
-
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]


new Aspen Group Email

2003-09-10 Thread gatkin
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued.

Please note my new email address. To prevent automated systems from obtaining my new 
email address, I will spell out the @ symbol. Please send all future email to:

gordon[at]aspengroup.net



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



mysite -> 3rd party -> mysite, session *sometimes* lost

2003-09-10 Thread Michael Teter
Howdy.

I've got a site I am interfacing with PaySystems.com (credit card 
processing).

For some users (Internet Explorer, same or very similar version, default 
settings), when they return to my site after doing the credit card dance 
on the paysystems.com site, they get a new session.

I can't figure out why some do and some don't.  The way PaySystems 
works, after the user gives ccard info, and assuming it is accepted, 
PaySystems then forwards the user back to my site, along with a bunch of 
GET parameters that describe the order.  But some users arrive back at 
my site and are given a new sessionid, and so there's no context, and my 
system is rejecting their attempt to visit the page.

I can go into lots more detail if necessary.  Does anyone have any ideas 
right away?

Thanks very much.

MT



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


Tomcat 4 Replication problems

2003-09-10 Thread David Rees
I've been testing Tomcat 4.1.27 replication for our application with
tomcat-replication 1.01.  I've found two issues.

My test setup involves one Apache 1.3 with mod_jk in front of two Tomcats
with the identical configuration.  The Session replication is setup
identically to what's on http://cvs.apache.org/~fhanik/.

1. When sticky session are not enabled (jvmRoute is not set for the Engine
in Tomcat) and mod_jk is balancing requests across the two Tomcat's, if a
session is modified on one Tomcat and you get sent to the other Tomcat,
(for example if you are redirected) sometimes the session will not yet
have replicated to the other Tomcat and you will not see the updated
session.  Using sticky sessions solves this problem, but I did not see
this issue noted anywhere.  I can not think of a way to solve it except
for sticky sessions unless you can somehow guarantee that the session is
replicated before the next request comes in.

2. Sticky sessions are enabled.  Both Tomcats are running and they both
have a copy of the replicated session.  I can disable either Tomcat and
mod_jk will move the client to the other Tomcat without any problems.  But
say I have a session on Tomcat1.  I then disable Tomcat1.  At this point,
mod_jk starts sending me to Tomcat2.  I later start up Tomcat1 again while
continuing to make requests.  It seems that if I make a request that gets
sent to Tomcat1 too early (I think the replicated sessions have not yet
been downloaded from Tomcat2) Tomcat1 generates a new session for the
client and I lose the benefits of session replication.

Any ideas?

-Dave

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



Re: Mobile phone on serial port - Howto send sms?

2003-09-10 Thread Sai Sivanesan
we have an affilliate company that has a product comming on the market that
uses a Nokia 30 or Nokia 31 GSM modem(phone without a headset and with a rs232
port) and does exactly that.  we have a client server version comming out - i
will ask how its done - can't be too difficult as the app is mostly a vb
piece.  as long as i am not going to give away anything to proprietary i'll
share it - why do you want to use a serial conection - do you need to receive
sms msgs as well as send?  cause if all you need to do is send, why don't you
just dispatch it as an email?

Sai.


On Wed, 10 Sep 2003 23:34:51 -0100 (GMT+1), john-paul delaney wrote
> Hello List... this is a tricky one I believe,
> 
> Serial port-connected mobile phone - I'd like to find out how to 
> send sms messages using tomcat on linux.  Anyone got any leads? 
> 
> I'd appreciate any help.
> 
> thanks,
> /j-p.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



--
Open WebMail Project (http://openwebmail.org)


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



RE: Tomcat log files

2003-09-10 Thread Paul Wallace

Great,
I checked out
/tomcat-4.1-doc/config/valve.html#Access%20Log%20Valve. An Access Log
Valve is what is needed here I think. I saw no reference to syntax
however, and to where the valve is placed? I wish to capture access to
ALL contexts, for a single engine. Where do I tell the server about the
valve? conf/web.xml? Syntax? Where might this information be located
please? 

Thanks

Paul.


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Access
%20Log%20Valve

-Tim

Paul Wallace wrote:

> Hi,
> 
> How does one configure the output of Tomcat log files? Is
> this possible? Is there an equivalent to the Apache httpd.conf file?
>  


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



jsp 1.2 and escaping quote marks

2003-09-10 Thread Rich Unger

http://java.sun.com/JSP/Page"; version="1.2">
   
  
  
  
   


All 3 of these lines cause compile errors.  I'm using XSLT to generate
files which _may_ be JSP files (they may be static files, it's determined
when the xslt runs).  Because of this, I'm not particularly enthused about
manually sticking backslashes in front of my quote characters.

What I want to know is, how does tomcat 4 know to escape the quote marks
around foo.jpg, as in:

  out.write("");

...but not around "quoted"?  Is it a bug, or is this an expected compile
error in my jsp?

Thanks,
Rich


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



Re: Tomcat log files

2003-09-10 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Access%20Log%20Valve
-Tim

Paul Wallace wrote:

Hi,

How does one configure the output of Tomcat log files? Is
this possible? Is there an equivalent to the Apache httpd.conf file?
 


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


Tomcat log files

2003-09-10 Thread Paul Wallace
Hi,

How does one configure the output of Tomcat log files? Is
this possible? Is there an equivalent to the Apache httpd.conf file?

 

Thanks

 

Paul. 



Re: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1. 27 w hen trying instantiate datasource object.

2003-09-10 Thread Filip Hanik
what JDK are you using?

Filip
- Original Message -
From: "Wynkoop, Robert M" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 3:14 PM
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.
27 w hen trying instantiate datasource object.


Yeah I had already tried that.  When It was not there I got this message on
Tomcat startup - java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/sql/DataSource

I'm kind of stumped on this.  Any other ideas?

Later,


Robert Wynkoop

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:11 PM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.


If you use oracle jdbc driver, put classes12.jar in common/lib

-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED]
Sent: September 10, 2003 6:06 PM
To: Tomcat Mailing List (E-mail)
Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w
hen trying instantiate datasource object.

The error(Wen I try to use a JNDI resource in my webapp.):

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start"
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='remic_msgcat',
returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
29)
at
com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc
eManager.java:80)

I know I have the Oracle jar in the right place because I get this msg when
if I don't have it in /common/lib.

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start"
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/sql/DataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)

I googled for this answer.  The most common problem is not finding the
database driver in /common/lib.


Later,


Robert Wynkoop

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



new Aspen Group Email

2003-09-10 Thread gatkin
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued.

Please note my new email address. To prevent automated systems from obtaining my new 
email address, I will spell out the @ symbol. Please send all future email to:

gordon[at]aspengroup.net



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



Re: escaping problems--ha!

2003-09-10 Thread Richard Norman
This is one I think I can answer... :-)

What you want to do is first escape the back slash, then escape the 
apostraphe...

so you want to have a string that looks like this: var name = '\\\'';

That should get what you are looking for. you may need to create a string 
parsing or regular expression routine to get what you are looking for.

Richard Norman
Web/Application Developer
Original Message Follows
From: "Koes, Derrick" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: escaping problems--ha!
Date: Wed, 10 Sep 2003 16:59:24 -0400
My scenario involves a user who wishes to enter \' in an html input field.
I must then convert that to a javascript variable (for any number of
reasons).
However, when I attempt to escape backslashes then attempt to escape
apostrophes, I end up with a javascript error: Unterminated string constant.
I can see the source on my page has the javascript variable something like:
var name = '\\''.
What are the correct steps to correctly escape data such as \' or any number
of backslashes or apostrophes.
Thanks,
Derrick
_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es

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


Admin tool

2003-09-10 Thread Jeff Cummings
Hello,
I am using tomcat 4.1.24. For the admin web app, I configured authentication
in the web.xml file in the WEB-INF directory. What is the purpose of the
following statements in the sample server.xml.







  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


Jeff




Re: Security-constraints - how to forbid all except ...

2003-09-10 Thread Tim Funk
One workaround is to map EVERYTHING to a set of servlets. Then set your 
Security constraints against the servlets instead of the URL pattern.

-Tim

Chris Rolfe wrote:
Hi,

Does anyone have a way to set security constraints to forbid access to
everything (as the by default) *except* specified files + dirs?
The web.xml snippet below comes very close to doing what I want although it
relies on the order of constraints (ie, it's container-dependent).
The problem with my solution is that incomplete URI's don't have a chance to
be redirected to the welcome file. For example, "mydomain.com/myservlet"
hit's the SecurityConstraint[Forbidden] before being redirected to
index.jsp. 

So to rephrase the question: Is there a way to set security constraints to
forbid access to everything *except* specified files + dirs WITHOUT breaking
the site-root welcome-file redirect? Any workaround to exempt the '/'
redirect (maybe a servlet-mapping??).
Thanks,

Chris 

Tomcat 404 web.xml snippet
---


Public
/index.jsp
/public/*
GET
POST


NONE




Forbidden
Everything else.
/*
GET
POST
PUT
DELETE


none 


NONE


---


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


Re: content type charset

2003-09-10 Thread aaz
After some more debugging, here is what we are seeing happen in our Struts
1.1. app. Tomcat 4.0.6 (we also see simular results on 4.1.24, but have not
debugged into it like the below)

a) our request comes into our override of ActionServlet.process() and the
requests
 characterEncoding=UTF-8 and the Responses content type = text/html;
charset=UTF-8
just as we want it to be.

b) the request and response maintain their encodings and content-type values
up until RequestProcessor.doForward() is called which then gets a
RequestDispatcher to do the actual forward. (i.e. our action succeeded and
is now forwarding to a success JSP). Since we are using Tomcat the best I
can tell is that the actual RequestDispatcher implementation being executed
and handling this forward is org.apache.catalina.core.ApplicationDispatcher

c) Once ApplicationDispatcher handles the forward and passes the Request and
Response on to the forwarded-to JSP page, we see that the Response object
has its Content-Type reset to text/html; charset=ISO-8859-1, and the
characterEncoding on the response is ISO-8859-1. The request's encoding is
also set back to ISO-8859-1. Why is this?? Shouldn't the Response's encoding
and content-type not be manipulated here?

d) Note, again our JSP page that is forwarded to has <@page
contentType="text/html; charset=UTF-8" %> set at the top of it but this
makes no difference. The UTF-8 data we are trying to display on the JSP page
now has all the question marks (?) in it in place of the special utf-8
chars.

help!!!

- Original Message - 
From: "aaz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 12:59 PM
Subject: Re: content type charset


> Yeah we have response.setContentType("text/html; charset=UTF-8") in our
> ActionServlet.process() override (which iis called before anything is
> printed to the browser)
>
> Anyone else have some tips? Is there a server.xml config setting for this?
>
> - Original Message - 
> From: "Mark Orr" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 10, 2003 12:16 PM
> Subject: RE: content type charset
>
>
> > Hi,
> >
> > This might not be the cause of your problem, but it caught
> > me out recently until I read the Javadoc for the setContentType
> > method of ServletResponse:
> >
> >   "If obtaining a PrintWriter, this method should be called first."
> >
> > In otherwords, set your response type first, then get your
> > PrintWriter, not the other way around.
> >
> > Mark
> >
> > -Original Message-
> > From: aaz [mailto:[EMAIL PROTECTED]
> > Sent: 10 September 2003 17:22
> > To: [EMAIL PROTECTED]
> > Subject: content type charset
> >
> >
> > Hi,
> > We are using Tomcat 4.1.24 and jdk 1.4.1. And are having problems
getting
> > the HTTP headers returned from Tomcat to return the correct charset we
> need
> > to display our utf-8 encoded database data. (right now our text has all
> the
> > ? chars in it in place of the special chars)
> >
> > We need tomcat to start returning
> > Content-Type: text/hml; charset=UTF-8
> >
> > no matter what, tomcat keeps returning the http header
> > Content-Type: text/hml; charset=ISO-8859-1 and calls to
> > response.getCharacterEncoding() keeps returning ISO-8859-1 rather than
> UTF-8
> >
> > All of our JSP pages have:
> > <@page contentType="text/html; charset=UTF-8" %> and  > http-equiv="Content-Type" content="text/html; charset=UTF-8">
> >
> > We are using Struts 1.1. and override ActionServlet.process and have the
> > following line of code as well placed there:
> > response.setContentType("text/html; charset=UTF-8");
> >
> > In our catalina.bat we have JAVA_OPTS set = -Dfile.encoding=UTF-8
> >
> > What gives? Help please!
> >
> >
> >
> >
> >
> > -
> > 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: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1. 27 w hen trying instantiate datasource object.

2003-09-10 Thread Wynkoop, Robert M
Yeah I had already tried that.  When It was not there I got this message on
Tomcat startup - java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/sql/DataSource

I'm kind of stumped on this.  Any other ideas?

Later,


Robert Wynkoop

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:11 PM
To: 'Tomcat Users List'
Subject: RE: Cannot load JDBC driver class 'null' - Tomcat standalone
4.1. 27 w hen trying instantiate datasource object.


If you use oracle jdbc driver, put classes12.jar in common/lib

-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED] 
Sent: September 10, 2003 6:06 PM
To: Tomcat Mailing List (E-mail)
Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w
hen trying instantiate datasource object.

The error(Wen I try to use a JNDI resource in my webapp.):

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start" 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='remic_msgcat',
returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
29)
at
com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc
eManager.java:80)

I know I have the Oracle jar in the right place because I get this msg when
if I don't have it in /common/lib.

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start" 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/sql/DataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)

I googled for this answer.  The most common problem is not finding the
database driver in /common/lib.


Later,


Robert Wynkoop

-
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: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1. 27 w hen trying instantiate datasource object.

2003-09-10 Thread Phillip Qin
If you use oracle jdbc driver, put classes12.jar in common/lib

-Original Message-
From: Wynkoop, Robert M [mailto:[EMAIL PROTECTED] 
Sent: September 10, 2003 6:06 PM
To: Tomcat Mailing List (E-mail)
Subject: Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w
hen trying instantiate datasource object.

The error(Wen I try to use a JNDI resource in my webapp.):

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start" 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='remic_msgcat',
returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
29)
at
com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc
eManager.java:80)

I know I have the Oracle jar in the right place because I get this msg when
if I don't have it in /common/lib.

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start" 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/sql/DataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)

I googled for this answer.  The most common problem is not finding the
database driver in /common/lib.


Later,


Robert Wynkoop

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


Cannot load JDBC driver class 'null' - Tomcat standalone 4.1.27 w hen trying instantiate datasource object.

2003-09-10 Thread Wynkoop, Robert M
The error(Wen I try to use a JNDI resource in my webapp.):

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start" 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18-LE-jdk14
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='remic_msgcat',
returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/200
config=C:\web\Tomcat4.1\conf\jk2.properties
Cannot load JDBC driver class 'null'
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:523)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
29)
at
com.citimortgage.common.datasource.DataSourceManager.getConnection(DataSourc
eManager.java:80)

I know I have the Oracle jar in the right place because I get this msg when
if I don't have it in /common/lib.

C:\jdk1.3.1_08\jre\bin\java -classpath
"C:\web\Tomcat4.1\bin\bootstrap.jar";"C:\jdk1.3.1_08\lib\tools.jar"
-Dcatalina.home="C:\web\Tomcat4.1" -Dcatalina.base="C:\web\Tomcat4.1"
org.apache.catalina.startup.Bootstrap "start" 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/sql/DataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)

I googled for this answer.  The most common problem is not finding the
database driver in /common/lib.


Later,


Robert Wynkoop

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



RE: Ant reload task does not work with Tomcat 4.1.27

2003-09-10 Thread Phillip Qin
Have you applied 4.1.27 hotfix?

-Original Message-
From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] 
Sent: September 10, 2003 1:05 PM
To: 'Tomcat Users List' (E-mail)
Subject: Ant reload task does not work with Tomcat 4.1.27

Hi everyone,

I just upgraded to Tomcat 4.1.27 and the Ant reload task is not working.

Is that a known bug? I keep searching the bug database but I can't find
anything about it?

Thanks,
Tarek M. Nabil

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


Re: NullPointer on getParameter

2003-09-10 Thread Laurie Harper
Agreed :-) But understanding the life cycle of CoyoteRequestFacade may 
make it easier to do so. There's nothing particularly funky going on in 
the code that's exhibiting the problem so I don't know yet what I can 
pare away. I'm trying to get a local build of Tomcat set up so I can add 
some tracing and narrow things down.

L.

Shapira, Yoav wrote:

Howdy,
The best thing is to come up with a way for us to reproduce it.  The
simplest, most direct way to get the exception.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 6:17 PM
To: [EMAIL PROTECTED]
Subject: NullPointer on getParameter
Hi, I'm trying to figure out a problem we've encountered since
upgrading

to Tomcat 4.1. I've seen this both on 4.1.24 and 4.1.27. I haven't yet
reduced it to a specific recipe for reproduction outside the context of
my application but I do see this quite frequently so I thought I'd see
if anyone else has come across it...
The problem is that a call to getParameter is getting a
NullPointerException in the delegation method on CoyoteRequestFacade:
Caused by:
java.lang.NullPointerException
   at org.apache.coyote.tomcat4.CoyoteRequestFacade.
getParameter(CoyoteRequestFacade.java:178)
   at javax.servlet.ServletRequestWrapper.
getParameter(ServletRequestWrapper.java:203)
I checked the code and line 178 just a call to the wrapped
CoyoteRequest

object, meaning that reference is null. Now, there's only two ways it
could be null: a null reference was passed into CoyoteRequestFacade's
constructor, or CoyoteRequestFacade.clear() was called.
As I understand it, a CoyoteRequestFacade should be associated with a
request when it starts and not released until the request has completed
so I'm leaning towards looking at the first possibility. Can anyone
give

me an overview of the 'life cycle' of CoyoteRequestFacade? Where is it
created, managed, assigned/reclaimed from a particular request, etc?
Better yet, has anyone run into this and found a solution? The nearest
thing I could find was Bug# 21611 which sounds like the same problem.
From the commentary, it doesn't look like there's a known cause yet;
what would be the best way to track this down (as I say, I can
reproduce

the behaviour easily here)?

Thanks,

L.



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




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.


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


Re: Mobile phone on serial port - Howto send sms?

2003-09-10 Thread Filip Hanik
not really a tomcat related question.
you will need to know the protocol spec that your phone is using on the
port,then you can just send and receive commands. don't know of any third
party libraries that do this already

Filip
- Original Message -
From: "john-paul delaney" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 5:34 PM
Subject: Mobile phone on serial port - Howto send sms?


Hello List... this is a tricky one I believe,

Serial port-connected mobile phone - I'd like to find out how to send sms
messages using tomcat on linux.  Anyone got any leads?

I'd appreciate any help.

thanks,
/j-p.


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



Mobile phone on serial port - Howto send sms?

2003-09-10 Thread john-paul delaney
Hello List... this is a tricky one I believe,

Serial port-connected mobile phone - I'd like to find out how to send sms messages 
using tomcat on linux.  Anyone got any leads? 

I'd appreciate any help.

thanks,
/j-p.


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



Security-constraints - how to forbid all except ...

2003-09-10 Thread Chris Rolfe
Hi,

Does anyone have a way to set security constraints to forbid access to
everything (as the by default) *except* specified files + dirs?

The web.xml snippet below comes very close to doing what I want although it
relies on the order of constraints (ie, it's container-dependent).

The problem with my solution is that incomplete URI's don't have a chance to
be redirected to the welcome file. For example, "mydomain.com/myservlet"
hit's the SecurityConstraint[Forbidden] before being redirected to
index.jsp. 

So to rephrase the question: Is there a way to set security constraints to
forbid access to everything *except* specified files + dirs WITHOUT breaking
the site-root welcome-file redirect? Any workaround to exempt the '/'
redirect (maybe a servlet-mapping??).

Thanks,

Chris 

Tomcat 404 web.xml snippet
---


Public
/index.jsp
/public/*
GET
POST


NONE





Forbidden
Everything else.
/*
GET
POST
PUT
DELETE


none 


NONE


---


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



escaping problems--ha!

2003-09-10 Thread Koes, Derrick
My scenario involves a user who wishes to enter \' in an html input field.
I must then convert that to a javascript variable (for any number of
reasons).
However, when I attempt to escape backslashes then attempt to escape
apostrophes, I end up with a javascript error: Unterminated string constant.
I can see the source on my page has the javascript variable something like:
var name = '\\''.
What are the correct steps to correctly escape data such as \' or any number
of backslashes or apostrophes.
 
Thanks,
Derrick
 
 
 
 
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


JK2 Question...

2003-09-10 Thread Richard Norman
I have read the information and configured my server as specified at the 
following URL...

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/installhowto.html

The thing I think is going on is that the port is not open fully cause every 
time I try to connect to a JSP page from IIS, I get the "Can not find server 
or DNS Error" message. If I go directly to tomcat on the port I set up, 
everything works (4). in the startup sequence it says in the log file 
the following

*
INFO: Starting Coyote HTTP/1.1 on port 4
Sep 10, 2003 1:22:09 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:40100
Sep 10, 2003 1:22:09 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/250  
config=C:\Tomcat\Tomcat-5.0\conf\jk2.properties
Sep 10, 2003 1:22:09 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6797 ms
*

Here is my workers2.properties file
*
[channel.socket:localhost:40100]
port=40100
host=127.0.0.1
# define the worker
[ajp13:localhost:40100]
channel=channel.socket:localhost:40100
# Map the Tomcat examples webapp to the Web server uri space
[uri:/jsp-examples/*]
info=Map the whole webapp
*
Here is my jk2.properties file
*
# Set the desired handler list
handler.list=request,channelSocket
#
# Override the default port for the socketChannel
channelSocket.port=40100
channelSocket.address=127.0.0.1
request.tomcatAuthentication=true
*
and here is the connector entry in my server.xml file
*

   
*
Any ideas anyone?  THis is the last step to get everything working 100% for 
me...

Richard Norman
Web/Application Developer
_
Compare Cable, DSL or Satellite plans: As low as $29.95.  
https://broadband.msn.com

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


Re: Tomcat and IIS + Index Server -> possible ?

2003-09-10 Thread Marco Tedone
Hi Alain, I'm developing the same functionality for my site. Limiting the
problems to JSPs (as if you are using Struts are more and if you're using
Struts + Tiles are a lot more...Guess...which one am I using??) the only
real activity you need to do is to manipulate the path returned by Lucene,
which refers to your JSPs, in a web-context manner, so that you can give
those pages as links to the user. The content it's not a problem, at least
in my case, because Lucene build an index of all significant words in your
JSPs and the correct JSPs are returned if you run a query for any of the
words contained in your JSP.

You may have additional problems if your JSPs are used as pure views,
letting the hard-work to servlets (which any possible background) which act
as proxies. The reason is that, even if a possible search engine would
return to you the path to a JSP page, this page could not be accessible
directly, because for instance, it displays some JavaBean content which has
been prepared by some background work. Rather, you will want the user to
link to the relevant action which eventually will forward the control to the
JSP, therefore even if the content is contained in JSPs, what you should
show to the user to click on, is a link to the action bound with that JSP.

I solved all those problems so far; unfortunately, I'm running with Tiles,
and the JSPs which actually contains the content of interest, is not the JSP
bound with the action I want to show to the user. The JSP bound with the
action has got the following code (snippet):

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>



As you can see, there is not a lot of content here for a search engine to
find :|

Good luck,

Marco

- Original Message - 
From: "Hertenstein Alain" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 12:45 PM
Subject: RE : Tomcat and IIS + Index Server -> possible ?


Hi,

Just asking about this topic again, since nobody answered or seems to have
an idea...
Meanwhile I just had a look on Lucene, but I'm not sure if it can do what I
need without -too much- setup and code work.
I "managed" to make it work and search local files, but I don't know if it
can search JSP files, i.e. what the JSPs generate in HTML... It seems like
one has to re-code the whole index creation process to achive this !

Anyone has done that before ?
Can anybody recommend me what to do to implement that search engine with IIS
and Tomcat ?

Thanks for your help, I'm really stuck here...
Alain

-Message d'origine-
De : Hertenstein Alain
Envoyé : lundi, 1. septembre 2003 18:24
À : 'Tomcat Users List'
Objet : Tomcat and IIS + Index Server -> possible ?


Hello,

Our configuration is as follows : Win2K, JDK 1.4.1, Tomcat 4.1.24 connected
with IIS using mod_jk. Index Server is AFAIK also installed. We are thinking
of adding a "Search site" button in our web application. The "problem" is
that we have content coming from numerous places in our JSP pages : inside
the pages (stored either as HTML or in Java String variables) or in MS SQL
Server tables.

We thought of using Index Server to do that, since it should normally handle
most of the work easily... Is this possible in such configuration ? In other
words, can Index Server access text retrieved in any way by JSPs ? Another
issue is that there's no virtual directory configured in IIS other than the
"redirector" directory (pointing to the isapi_redirector2.dll file). So I'n
not sure IIS/Index Server can access JSPs at all anyway...

Has anyone already tried this before ? Or maybe is there another better way
to achieve this ? Please let me know, thank you very much ! Alain


**
 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.
**


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



problem apache interacting with Tomcat after restarting apache

2003-09-10 Thread Pradeep Gummi
Hi all,
I have apache interacting with Tomcat using mod_jk module. I get the 
servlets running from Apache once I set the context path in server.xml 
and configure the web.xml for servlet mapping. Everything runs fine 
before I restart Apache and Tomcat. But after I restart the Apache web 
server and the Tomcat, I am getting file not found 404 error when I 
access the Servlets running in Tomcat. I can run the servlets by 
accessing through Tomcat's port but am not able to access through web 
server's port -port 80. I am not able to figure out what the problem 
is. Any suggestions
thanks
pradeep


- Original Message -
From: "Neil Aggarwal" <[EMAIL PROTECTED]>
Date: Wednesday, September 10, 2003 3:55 pm
Subject: RE: Tomcat 4.1.27 not reloading classes even after applying 
hotfix

> Yoav:
> 
> Yes, my tar is gnu tar.  
> I used jar, not tar to extract the catalina jar file.
> 
> Is there an issue with that?
> 
> 
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating 
> costs by 
> 17% or more in 6 months or less! => 
> http://newsletter.JAMMConsulting.com
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, September 10, 2003 1:47 PM
> > To: Tomcat Users List
> > Subject: RE: Tomcat 4.1.27 not reloading classes even after 
> > applying hotfix
> > 
> > 
> > 
> > Howdy,
> > Your tar is GNU tar, right?
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-Original Message-
> > >From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, September 10, 2003 2:41 PM
> > >To: 'Tomcat-User'
> > >Subject: Tomcat 4.1.27 not reloading classes even after 
> > applying hotfix
> > >
> > >Hello:
> > >
> > >I have a server running tomcat 4.1.27 and it is not reloading
> > >classes for my webapp even after applying the hotfix.
> > >
> > >I installed tomcat 4.1.27 by doing these commands:
> > >cd /usr/local
> > >lynx
> > >http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakar
> > ta-tomcat-
> > 4
> > >.1.27.tar.gz
> > >tar zxf jakarta-tomcat-4.1.27.tar.gz
> > >
> > >Here is what I did to install the hotfix:
> > >cd /usr/local/jakarta-tomcat-4.1.27/server/classes
> > >jar xvf ../lib/catalina.jar
> > >rm -f ../lib/catalina.jar
> > >cd /usr/local/jakarta-tomcat-4.1.27
> > >lynx
> > >http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27
> -hotfix-22
> 0
> >96.tar.gz
> >tar zxf 4.1.27-hotfix-22096.tar.gz
> >
> >I have my server.xml to reloadable="true" for the app's context.
> >
> >Any ideas?
> >
> >Thanks,
> > Neil
> >
> >--
> >Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> >FREE! Valuable info on how your business can reduce operating 
> costs by
> >17% or more in 6 months or less! =>
> http://newsletter.JAMMConsulting.com
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> ---
> --
> 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]



jsp -> string ?

2003-09-10 Thread Andoni
Hello,

I have written a little method for my servlet that let's me know when something goes 
wrong.  It sends me an email the body of which is a simple java.lang.String.  This is 
easy as I cut mostly from a book I have ;-)

Anyway, my question now is, I want to have my RequestDipatcher fill out a jsp page and 
send this as the body of the email.  Can anyone tell me how to achieve this?

How do I convert the .jsp with all it's parameters filled in, into a java.lang.String?

My thanks in advance,

Andoni.



MOD_JK2 load balancing example

2003-09-10 Thread Joe Harmon
Is there anyone who has load balancing working with MOD_JK2?  If you do
could you please send me a working example of the workers2.properties
file.  Also, please let me know whether or not you are running tomcat on
three separate servers, or off of the same box using different
server.xml files.

Joe Harmon
Web Services Support 
Novell Inc.  -  The leading provider of Information Solutions.
(801) 861-9163
[EMAIL PROTECTED]

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



RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-10 Thread Neil Aggarwal
Yoav:

Yes, my tar is gnu tar.  
I used jar, not tar to extract the catalina jar file.

Is there an issue with that?


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 10, 2003 1:47 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.27 not reloading classes even after 
> applying hotfix
> 
> 
> 
> Howdy,
> Your tar is GNU tar, right?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 10, 2003 2:41 PM
> >To: 'Tomcat-User'
> >Subject: Tomcat 4.1.27 not reloading classes even after 
> applying hotfix
> >
> >Hello:
> >
> >I have a server running tomcat 4.1.27 and it is not reloading
> >classes for my webapp even after applying the hotfix.
> >
> >I installed tomcat 4.1.27 by doing these commands:
> >cd /usr/local
> >lynx
> >http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakar
> ta-tomcat-
> 4
> >.1.27.tar.gz
> >tar zxf jakarta-tomcat-4.1.27.tar.gz
> >
> >Here is what I did to install the hotfix:
> >cd /usr/local/jakarta-tomcat-4.1.27/server/classes
> >jar xvf ../lib/catalina.jar
> >rm -f ../lib/catalina.jar
> >cd /usr/local/jakarta-tomcat-4.1.27
> >lynx
> >http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27
-hotfix-22
0
>96.tar.gz
>tar zxf 4.1.27-hotfix-22096.tar.gz
>
>I have my server.xml to reloadable="true" for the app's context.
>
>Any ideas?
>
>Thanks,
>   Neil
>
>--
>Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
>FREE! Valuable info on how your business can reduce operating costs by
>17% or more in 6 months or less! =>
http://newsletter.JAMMConsulting.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


-
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: Binary download question.

2003-09-10 Thread Shapira, Yoav

Howdy,
The release locations for old releases have changed recently.  Go here:
http://archive.apache.org/dist/jakarta/tomcat-4/archive/

Future versions of tomcat will have updated documentation to reflect the
new archive locations.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Nitin Naik [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 3:31 PM
>To: [EMAIL PROTECTED]
>Subject: Binary download question.
>
>Hi,
>
>I want to download binaries for Apache Tomcat 4.0.6 for Windows.
>
>I am following instructions from
>http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt
>
>It says
>* Download a binary distribution of Tomcat from:
>
>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/
>
>yet when Itry to goto that page it redirects me to
>http://jakarta.apache.org/site/binindex.cgi
>
>Is this a bug? How can I download binaries for Apache Tomcat 4.0.6 for
>Windows.
>
>--Nitin
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Binary download question.

2003-09-10 Thread Nitin Naik
Hi,

I want to download binaries for Apache Tomcat 4.0.6 for Windows.

I am following instructions from
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

It says
* Download a binary distribution of Tomcat from:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/

yet when Itry to goto that page it redirects me to
http://jakarta.apache.org/site/binindex.cgi

Is this a bug? How can I download binaries for Apache Tomcat 4.0.6 for
Windows.

--Nitin


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



META-INF - JNDI Datasource resolution

2003-09-10 Thread Hookom, Jacob
Currently, we are having some issues with hot deploying wars from ant tasks
and relying on our context being specified in the META-INF folder.

We are getting a connection = 'null' when a war is used, but if we expand
the war, using the same context, into a folder, then it works fine.

>From what we can tell, Tomcat is using DBCP (as specified) in instantiating
a DataSource, but all of the ResourceParams are being set possibly?

As to the reason why the context doesn't load the connection from a war, but
does do it from an expanded directory from a war?

Thanks!
Jacob



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



RE: Who serves static content Tomcat or Apache?

2003-09-10 Thread Lee, Paul NYC
Hi Kai,

Apache will(should) serve your static content as long as you point the
DocumetRoot to it.  Also, tomcat won't serve any files you don't specify in
the mod_jk properties file.  Like if you don't specify *.html or *.jpg.

Hope this helps.

-Original Message-
From: Kai Schliemann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 3:16 PM
To: [EMAIL PROTECTED]
Subject: Who serves static content Tomcat or Apache?


Hi list,

Assuming, I have Server A with Apache and Server B with Tomcat and they are
connected via mod_jk and on Server B are static (html)-files. Which server
handles these files?

Sorry for this - probably - stupid question.

TIA

Kai


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



SSL Apache/Tomcat encrypting a subdirectory

2003-09-10 Thread Kai Schliemann
Hello list,

I have the following problem:

I'm running Apache 1.3.27 on Suse Linux 8.2 (Server 1) and Tomcat 4.1.24 on
Suse Linux 8.2 (Server 2).
I'm using mod_jk as connector for Apache/Tomcat which works fine without
SSL-configuration.

My JAVA-Webapp is running on Tomcat (Server 2).
I can connect to my JAVA-Webapp through the URL http://www.foo.com/.
Now I want a subdirectory (online) of this webapp to run in ssl-mode (e.g.
https://www.foo.com/online/).
I just want the directory "online" (and all of its subdirectories) to be
ssl-encrypted not the complete domain "www.foo.com".

How can I do that?

Thanks in advance.

Kai


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



Who serves static content Tomcat or Apache?

2003-09-10 Thread Kai Schliemann
Hi list,

Assuming, I have Server A with Apache and Server B with Tomcat and they are
connected via mod_jk and on Server B are static (html)-files. Which server
handles these files?

Sorry for this - probably - stupid question.

TIA

Kai


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



Re: content type charset

2003-09-10 Thread aaz
Yeah we have response.setContentType("text/html; charset=UTF-8") in our
ActionServlet.process() override (which iis called before anything is
printed to the browser)

Anyone else have some tips? Is there a server.xml config setting for this?

- Original Message - 
From: "Mark Orr" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 12:16 PM
Subject: RE: content type charset


> Hi,
>
> This might not be the cause of your problem, but it caught
> me out recently until I read the Javadoc for the setContentType
> method of ServletResponse:
>
>   "If obtaining a PrintWriter, this method should be called first."
>
> In otherwords, set your response type first, then get your
> PrintWriter, not the other way around.
>
> Mark
>
> -Original Message-
> From: aaz [mailto:[EMAIL PROTECTED]
> Sent: 10 September 2003 17:22
> To: [EMAIL PROTECTED]
> Subject: content type charset
>
>
> Hi,
> We are using Tomcat 4.1.24 and jdk 1.4.1. And are having problems getting
> the HTTP headers returned from Tomcat to return the correct charset we
need
> to display our utf-8 encoded database data. (right now our text has all
the
> ? chars in it in place of the special chars)
>
> We need tomcat to start returning
> Content-Type: text/hml; charset=UTF-8
>
> no matter what, tomcat keeps returning the http header
> Content-Type: text/hml; charset=ISO-8859-1 and calls to
> response.getCharacterEncoding() keeps returning ISO-8859-1 rather than
UTF-8
>
> All of our JSP pages have:
> <@page contentType="text/html; charset=UTF-8" %> and  http-equiv="Content-Type" content="text/html; charset=UTF-8">
>
> We are using Struts 1.1. and override ActionServlet.process and have the
> following line of code as well placed there:
> response.setContentType("text/html; charset=UTF-8");
>
> In our catalina.bat we have JAVA_OPTS set = -Dfile.encoding=UTF-8
>
> What gives? Help please!
>
>
>
>
>
> -
> 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 4.1.27 not reloading classes even after applying hotfix

2003-09-10 Thread Shapira, Yoav

Howdy,
Your tar is GNU tar, right?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 2:41 PM
>To: 'Tomcat-User'
>Subject: Tomcat 4.1.27 not reloading classes even after applying hotfix
>
>Hello:
>
>I have a server running tomcat 4.1.27 and it is not reloading
>classes for my webapp even after applying the hotfix.
>
>I installed tomcat 4.1.27 by doing these commands:
>cd /usr/local
>lynx
>http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakarta-tomcat-
4
>.1.27.tar.gz
>tar zxf jakarta-tomcat-4.1.27.tar.gz
>
>Here is what I did to install the hotfix:
>cd /usr/local/jakarta-tomcat-4.1.27/server/classes
>jar xvf ../lib/catalina.jar
>rm -f ../lib/catalina.jar
>cd /usr/local/jakarta-tomcat-4.1.27
>lynx
>http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27-hotfix-22
0
>96.tar.gz
>tar zxf 4.1.27-hotfix-22096.tar.gz
>
>I have my server.xml to reloadable="true" for the app's context.
>
>Any ideas?
>
>Thanks,
>   Neil
>
>--
>Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
>FREE! Valuable info on how your business can reduce operating costs by
>17% or more in 6 months or less! =>
http://newsletter.JAMMConsulting.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Annoying taglib problem

2003-09-10 Thread Thomas Hehl
I started off with that, but the computer I'm working from does not have internet 
access. You get a specific error message for DTD not found for that one. Been there, 
done that, got the t-shirt.

I moved the DTD from the internet to the below path to fix the problem.

Anyone else?

--- Jon Wingfield <[EMAIL PROTECTED]> wrote:
>Oops. Right you are. Didn't read the error message ;(
>Looks like the taglibs dtd wasn't found. Try
>
>
>1.2/EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>
>at the start of your tablib file.
>
>(sorry about the line-wrap)
>
>Jon
>
>Thomas Hehl wrote:
>
>> I started with that, and it produced the same results. I then coded it as it is to 
>> eliminate the web.xml from being the problem.
>> 
>> --- Jon Wingfield <[EMAIL PROTECTED]> wrote:
>> 
>>>Put a taglib entry in your web.xml:
>>>
>>>  
>>>your_uri_here
>>>/WEB-INF/taglib.tld
>>>  
>>>
>>>and change your jsp page:
>>>
>>><%@ taglib uri="your_uri_here" prefix="ft" %>
>>>
>>>As per section JSP.7.3.6.3 of the JSP 1.2 specification, available here:
>>>http://www.jcp.org/aboutJava/communityprocess/final/jsr053/
>>>Also:
>>>http://jakarta.apache.org/taglibs/guidelines.html
>>>
>>>HTH,
>>>
>>>Jon
>>>
>>>Thomas Hehl wrote:
>>>
>>>
I have never used taglibs before. Be warned!:)

New setup of tomcat 4.12. The tag itself is stored in 
WEB-INF/lib/forerunner-webapps.jar, but the error is the same whether the jar file 
is there or not. I simply don't know where to look next.

I am getting the following error (edited):

2003-09-09 12:49:13 Invalid PUBLIC ID: -//Sun Microsystems, Inc.//DTD JSP Tag 
Library 1.2/EN
2003-09-09 12:49:14 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp 
threw exception
org.apache.jasper.JasperException: /writings.jsp(14,6) Unable to load class 
CsvDisplayTag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
at org.apache.jasper.compiler.Parser.parseCustomTag(Unknown Source)
at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
...
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

Here is the JSP:


<%@ taglib uri="/WEB-INF/taglib.tld" prefix="ft" %>


Forerunner International





<%@ include file="/includes/masthead.include" %>

Welcome

  


<%@ include file="/includes/pagefooter.include" %>



And here is the taglib.tld file:


>>>"DTDs/web-jsptaglibrary_1_2.dtd">


  1.0
  1.2
  forerunner-tags
  http://www.forerunnerintl.org/taglibs/forerunner-webapps.jar

  
CsvDisplayTag
forerunner.tag.CsvDisplayTag
empty
CSV (Commma-seperated values) Formatter
  



And here is the tag itself:

package forerunner.tag;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.JspTagException;

public class CsvDisplayTag implements Tag
{
private PageContext pageContext;
private Tag parent;

public CsvDisplayTag()
{
super();
}

public int doStartTag() throws JspTagException
{
return SKIP_BODY;
}

public int doEndTag() throws JspTagException
{
try
{
pageContext.getOut().write("Hellow World!");
} catch(java.io.IOException ex)
{
throw new JspTagException("IO Error:" + ex.getMessage());
}
return EVAL_PAGE;
}

public void release() {}

public void setPageContext(final javax.servlet.jsp.PageContext pageContext)
{
this.pageContext=pageContext;
}

public Tag getParent()
{
return parent;
}
public void setParent(final Tag parent)
{
this.parent=parent;
}
}

And here is a listing of forerunner-webapps.jar:

META-INF/
META-INF/MANIFEST.MF
forerunner/
forerunner/servlets/
forerunner/servlets/ma

Re: Building/using JK2 - linking problem

2003-09-10 Thread Nikola Milutinovic
> I had similar problems with loading shared libraries
> until I recompiled jk2 after configuring it with the
> "./configure --with-apxs=/some/path/to/apache2/bin/apxs"
> command suggested in John Turner's "Solaris 8 + Tomcat
> HOWTO", which is, BTW, and excellent resource. I have
> been able to get everything working on Solaris except
> getting Apache to start Tomcat in process (I am stumped
> on that one).

I ran it with "configure --with-apxs2=/usr/bin/apxs2", I'll try your
sugestion tomorrow. Until two weeks ago I was bound to Tru64 UNIX only. To
make the matters worse, it was an obsoleted version 4.0D, so, many things
were working - barely.

I guess it takes time...

Thanks,
Nix.


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



Re: Active Directory Single Sign-On

2003-09-10 Thread Nikola Milutinovic
It sounds like we should come up with a de facto way of achieving SSO with
Tomcat and NTLM (since there is plenty of M$ workstations out
there).Which leads me to believe that a lot of people could very well
benefit from this.. I'm required to implement this for our intranet
application which I have found to be the most common need for such an
implementation..

---

Maybe I'm falling in from the blue, but isn't ADS offering Kerberos5
(GSS-API) authentication, which is the actual workhorse of ADS
single-sign-on?

Why wouldn't you implement SPNEGO + GSS-API as an authentication method?

I have heard that Tomcat can be a client for SASL mech GSS-API, actually any
client using JAAS can do that (take a look at Sun's JNDI tutorial). Couldn't
Tomcat act as a server within Kerberos5 scheme, using the same JAAS (sorry,
JASS is not my cup of tea)?

In other words, write a special authentication module for Tomcat that would
let Tomcat act as a kerberized Web server. At first instance it could be a
filter, but SPNEGO (present in RFCs) is a HTTP layer authentication scheme
and should be implemented alongside Basic and Digest MD5 authentication
mechs.

There exist modules for Apache which implement this, take a look at these
links:

https://sourceforge.net/projects/modgssapache/
http://meta.cesnet.cz/software/heimdal/negotiate.en.html
http://sourceforge.net/projects/modauthkerb

The idea behind all this is to register a web server (Tomcat or Apache) as
services under Kerberos (Active Directory, MIT, Heimdal) and let clients
authenticate to the Kerberos (Win2k and WinXP do this when you login to ADS)
and then let Kerberos "do it's stuff". That way, once a user logs onto ADS,
he/she will have a complete SSO - File Sharing, Web (IIS, Apache, Tomcat),
any other ADS service.

Nix.


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



Re: Error Page 500 Not working. FAQ

2003-09-10 Thread Andoni
Sorry, make that java.lang.Throwable instead of java.lang.Exception.

Andoni.

- Original Message -
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 7:36 PM
Subject: Re: Error Page 500 Not working. FAQ


> Well, it seems to come up quite frequently on the web and in the
talk-groups
> that the error-page for 500 errors does not work.  In reading the spec. I
> have found a work-around though.
>
>  
>   java.lang.Exception
>   /jsp/error500.jsp
>  
>
> this will work for all sub-classes of Exception and as this includes all
> classes that cause and error 500 then it works well.
> It would be nice to have it work correctly though!  Even in the early
> version of 5.0.x it seems to have been not working again after being fixed
> late in the 4.1.x line.
>
> Andoni.
>
> - Original Message -
> From: "Andoni" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 10, 2003 6:19 PM
> Subject: Error Page 500 Not working.
>
>
> Hello,
>
> I am trying to implement error pages for my site.  They seem to work when
I
> specify the particular exception in the web.xml file thus:
>
>   
>   java.lang.NullPointerException
>   /jsp/error500.jsp
>  
>
> but not when I specify the error number as below.  What happens is that
when
> I have both of these entries in the web.xml and I put a divide by zero
error
> into my code to test it then it brings up the default Tomcat error page
with
> the Exception and the 500 at the top?
>
> 
>   500
>   /jsp/error500.jsp
>  
>
> Am I missing something?
>
> Andoni.
>
>
> -
> 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]



Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-10 Thread Neil Aggarwal
Hello:

I have a server running tomcat 4.1.27 and it is not reloading
classes for my webapp even after applying the hotfix.

I installed tomcat 4.1.27 by doing these commands:
cd /usr/local
lynx
http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakarta-tomcat-4
.1.27.tar.gz
tar zxf jakarta-tomcat-4.1.27.tar.gz

Here is what I did to install the hotfix:
cd /usr/local/jakarta-tomcat-4.1.27/server/classes
jar xvf ../lib/catalina.jar
rm -f ../lib/catalina.jar
cd /usr/local/jakarta-tomcat-4.1.27
lynx
http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27-hotfix-220
96.tar.gz
tar zxf 4.1.27-hotfix-22096.tar.gz

I have my server.xml to reloadable="true" for the app's context.

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com


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



RE: Tomcat Shutdown Issues - servlet destroy

2003-09-10 Thread Shapira, Yoav

Howdy,
Sorry, I'm not adept at interpreting truss.  I can't see the shutdown
signal.  I'd like to see a sequence of steps I can take to reproduce
your problem, so that we can fix it if it's indeed a tomcat problem
(which I doubt).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Oozy [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 2:36 PM
>To: Tomcat Users List; Shapira, Yoav
>Cc: Tomcat Users List
>Subject: RE: Tomcat Shutdown Issues - servlet destroy
>
>You should be able to see where Tomcat gets the shutdown signal, but
then
>never
>calls the destroy method for the servlet (the servlet is set to log
this) -
>so
>it appears that tomcat is not calling the destroy method properly?
>
>Quoting "Shapira, Yoav" <[EMAIL PROTECTED]>:
>
>>
>> Howdy,
>> Can't reproduce this one -- I use destroy (for servlets, filters),
and
>> contextDestroyed (for context listeners) all the time without any
>> issues.
>>
>> What's your truss output supposed to show?
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>>
>> >-Original Message-
>> >From: Oozy [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, September 10, 2003 2:03 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: Tomcat Shutdown Issues - servlet destroy
>> >
>> >Having a problem shutting down Tomcat - the servlet does not seem to
be
>> >receiving the destroy call when tomcat shuts down - version 4.1.24
and
>> >4.1.27
>> >of tomcat, sun 1.4.1_02 jdk on solaris 2.8 and redhat 8.0 - below is
a
>> >truss
>> >from solaris as it's shutting down.  Is this a bug w/ tomcat?
>> >
>> >
>> >poll(0xFA181B48, 0, 10) = 0
>> >lwp_cond_wait(0x0002C618, 0x0002C600, 0xFDF81AD0) Err#62 ETIME
>> >poll(0xEFB812E0, 1, 1000)   = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xF0081310, 1, 1000)   = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >accept(13, 0xFFBEDFAC, 0xFFBEDFCC, 1)   = 14
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " S", 1)   = 1
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " H", 1)   = 1
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " U", 1)   = 1
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " T", 1)   = 1
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " D", 1)   = 1
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " O", 1)   = 1
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " W", 1)   = 1
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, " N", 1)   = 1
>> >poll(0xFFBED7D8, 1, 1)  = 1
>> >read(14, 0xFFBED840, 1) = 0
>> >close(14)   = 0
>> >close(13)   = 0
>> >lwp_cond_signal(0x0002CAB8) = 0
>> >lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>> >lwp_mutex_wakeup(0x0002CAA0)= 0
>> >lwp_mutex_lock(0x0002CAA0)  = 0
>> >lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
>> >lwp_cond_broadcast(0x00465188)  = 0
>> >poll(0xFA181B48, 0, 10) = 0
>> >lwp_mutex_lock(0x00465170)  = 0
>> >lwp_mutex_wakeup(0x00465170)= 0
>> >lwp_cond_signal(0x0002CAB8) = 0
>> >lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>> >lwp_mutex_wakeup(0x0002CAA0)= 0
>> >lwp_mutex_lock(0x0002CAA0)  = 0
>> >lwp_cond_wait(0x00465188, 0x00465

RE: Tomcat Shutdown Issues - servlet destroy

2003-09-10 Thread Oozy
You should be able to see where Tomcat gets the shutdown signal, but then never 
calls the destroy method for the servlet (the servlet is set to log this) - so 
it appears that tomcat is not calling the destroy method properly?  

Quoting "Shapira, Yoav" <[EMAIL PROTECTED]>:

> 
> Howdy,
> Can't reproduce this one -- I use destroy (for servlets, filters), and
> contextDestroyed (for context listeners) all the time without any
> issues.
> 
> What's your truss output supposed to show?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Oozy [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 10, 2003 2:03 PM
> >To: [EMAIL PROTECTED]
> >Subject: Tomcat Shutdown Issues - servlet destroy
> >
> >Having a problem shutting down Tomcat - the servlet does not seem to be
> >receiving the destroy call when tomcat shuts down - version 4.1.24 and
> >4.1.27
> >of tomcat, sun 1.4.1_02 jdk on solaris 2.8 and redhat 8.0 - below is a
> >truss
> >from solaris as it's shutting down.  Is this a bug w/ tomcat?
> >
> >
> >poll(0xFA181B48, 0, 10) = 0
> >lwp_cond_wait(0x0002C618, 0x0002C600, 0xFDF81AD0) Err#62 ETIME
> >poll(0xEFB812E0, 1, 1000)   = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xF0081310, 1, 1000)   = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >accept(13, 0xFFBEDFAC, 0xFFBEDFCC, 1)   = 14
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " S", 1)   = 1
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " H", 1)   = 1
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " U", 1)   = 1
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " T", 1)   = 1
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " D", 1)   = 1
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " O", 1)   = 1
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " W", 1)   = 1
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, " N", 1)   = 1
> >poll(0xFFBED7D8, 1, 1)  = 1
> >read(14, 0xFFBED840, 1) = 0
> >close(14)   = 0
> >close(13)   = 0
> >lwp_cond_signal(0x0002CAB8) = 0
> >lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
> >lwp_mutex_wakeup(0x0002CAA0)= 0
> >lwp_mutex_lock(0x0002CAA0)  = 0
> >lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
> >lwp_cond_broadcast(0x00465188)  = 0
> >poll(0xFA181B48, 0, 10) = 0
> >lwp_mutex_lock(0x00465170)  = 0
> >lwp_mutex_wakeup(0x00465170)= 0
> >lwp_cond_signal(0x0002CAB8) = 0
> >lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
> >lwp_mutex_wakeup(0x0002CAA0)= 0
> >lwp_mutex_lock(0x0002CAA0)  = 0
> >lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
> >lwp_cond_broadcast(0x00465188)  = 0
> >lwp_cond_signal(0x0002CAB8) = 0
> >lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
> >lwp_mutex_wakeup(0x0002CAA0)= 0
> >lwp_mutex_lock(0x0002CAA0)  = 0
> >lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
> >lwp_cond_broadcast(0x00465188)  = 0
> >lwp_cond_signal(0x0002CAB8) = 0
> >lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
> >poll(0xFA181B48, 0, 10) = 0
> >lwp_mutex_

SSL issue on 4.1.24 (urgent)

2003-09-10 Thread Mike
Hello all,

I apologize in advance for this email not having sufficient supporting information, 
but I imagine others have come across this issue in the past:


I have two boxes, each running 4.1.24.  I've configured them the same, and on one of 
them SSL works (for a self-signed certificate generated by keytool according to the 
how-to) and on the other, it does not.  I get no response on the configured SSL port 
when I try to access any site.  There are no error messages, no indications in the log 
files that there is a problem.  It just appears that the Connector for SSL isn't 
actually listening for connections.  Also, when I attempt to shutdown the server, I 
get a CouldNotConnectException that prevents shutdown.

I know I should include the actual error message for shutdown but I thought I'd throw 
this out there and see if anyone has any good ideas of where to start.  A few more 
details:

1.  I have configured the other machine in the same way, using the default keystore, 
generating the self-signed certificate, leaving the default changeit password.  All of 
this means that I don't need to tailor the Factory element in server.xml in any 
particular way (though I have tried creating a new keystore, generating the tomcat 
aliased key in that, specifying in the Factory, etc as well).

2.  Apache is also running on this box on port 80.  It's front-ending Websphere which 
has a bunch of apps running.  I am trying to set up SSL on a wholly different port 
(8443) so I don't imagine there should be any conflicts.  On the other hand, I have 
vague suspicions that Websphere might somehow be part of the problem.  I did shut down 
Websphere at one point and try to access the SSL configured connector to no avail.  I 
have not, on the other hand, checked to see if there is some older copy of the 
security jarfiles (which I have placed in jre/lib/ext) in the classpath.

3.  I'm pretty sure I'm using all of the keytool stuff correctly, as things are 
working on the second machine, which I also configured.

So.. if anyone has any clues about how to see what's really going on with port 8443 
not being available (or any other port for that matter), I'd appreciate a head's up.  
We're supposed to go live with this app in the next few days and the problem is 
rapidly becoming urgent.

Thanks in advance,

Mike

P.S.  When you try to access the configured SSL port via an HTTP only request, I get 
about 5 I-don't-know-how-to-read-this-character boxes on the screen, so it does seem 
like SOMETHING is going on, but when I try to access via https, nada.. server could 
not be found...


Re: Error Page 500 Not working. FAQ

2003-09-10 Thread Andoni
Well, it seems to come up quite frequently on the web and in the talk-groups
that the error-page for 500 errors does not work.  In reading the spec. I
have found a work-around though.

 
  java.lang.Exception
  /jsp/error500.jsp
 

this will work for all sub-classes of Exception and as this includes all
classes that cause and error 500 then it works well.
It would be nice to have it work correctly though!  Even in the early
version of 5.0.x it seems to have been not working again after being fixed
late in the 4.1.x line.

Andoni.

- Original Message -
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 6:19 PM
Subject: Error Page 500 Not working.


Hello,

I am trying to implement error pages for my site.  They seem to work when I
specify the particular exception in the web.xml file thus:

  
  java.lang.NullPointerException
  /jsp/error500.jsp
 

but not when I specify the error number as below.  What happens is that when
I have both of these entries in the web.xml and I put a divide by zero error
into my code to test it then it brings up the default Tomcat error page with
the Exception and the 500 at the top?


  500
  /jsp/error500.jsp
 

Am I missing something?

Andoni.


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



RE: content type charset

2003-09-10 Thread Mark Orr
Hi,

This might not be the cause of your problem, but it caught
me out recently until I read the Javadoc for the setContentType
method of ServletResponse:
 
  "If obtaining a PrintWriter, this method should be called first."

In otherwords, set your response type first, then get your
PrintWriter, not the other way around.

Mark

-Original Message-
From: aaz [mailto:[EMAIL PROTECTED] 
Sent: 10 September 2003 17:22
To: [EMAIL PROTECTED]
Subject: content type charset


Hi,
We are using Tomcat 4.1.24 and jdk 1.4.1. And are having problems getting
the HTTP headers returned from Tomcat to return the correct charset we need
to display our utf-8 encoded database data. (right now our text has all the
? chars in it in place of the special chars)

We need tomcat to start returning
Content-Type: text/hml; charset=UTF-8

no matter what, tomcat keeps returning the http header
Content-Type: text/hml; charset=ISO-8859-1 and calls to
response.getCharacterEncoding() keeps returning ISO-8859-1 rather than UTF-8

All of our JSP pages have:
<@page contentType="text/html; charset=UTF-8" %> and 

We are using Struts 1.1. and override ActionServlet.process and have the
following line of code as well placed there:
response.setContentType("text/html; charset=UTF-8");

In our catalina.bat we have JAVA_OPTS set = -Dfile.encoding=UTF-8

What gives? Help please!





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



RE: tomcat won't reload my servlets

2003-09-10 Thread Mike Curwen
I apologize if any of this is repeated from any responses to your
earlier post:

It can't hurt to package your servlet. It's good practice, it's what
most people do, and it's probably the most 'supported' in terms of
wanting help from people on this list. ;)
 
Your context declaration has a space in the path attribute.  
path=" " should be 
path=""

When you say:
"and I can 't invoke any more servlets at all."
Do you mean in ANY context, or just yours?  Is there further output in
any of the logs regarding the context failing ?  Have you tried to
reload the context through the manager app? (You shouldn't need to do
this, but have you tried?)

If it's Tomcat 4.1.27, there's a known class reloading issue. This
normally applies to restarting a context, but it *might* be related.
Have you applied the hotfix ?
 
Finally, are you sure the changes are 'valid'? Meaning, it doesn't
introduce an infinite loop that kills your server?

> -Original Message-
> From: Nobert,Conrad [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 10, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat won't reload my servlets
> 
> 
> Hello,
> 
> I have the exact same issue that was posted about 20 days 
> ago. I haven't seen a response yet. Any ideas?
> 
> This is my servlet:
> 
> ##
> import javax.servlet.http.*;
> import javax.servlet.ServletException;
> import java.io.PrintWriter;
> import java.io.IOException;
> 
> public class Test extends HttpServlet
> {
> 
> public void init() throws ServletException
> {
> System.out.println( "loading ");
> }
> /**
> * Returns an HTML form to the client prompting for
> their name
> * and e-mail address.
> */
> public void doGet(HttpServletRequest request, 
> HttpServletResponse response) throws ServletException, 
> IOException { //set MIME type for HTTP header 
> response.setContentType( "text/html ");
> 
> //get a handle to the output stream
> PrintWriter out = response.getWriter();
> 
> out.println( "   ");
> out.println( " Topic 3 Exercise 4 p. 14 Study
> Guide  ");
> out.println( "  ");
> out.println( "  ");
> out.println( " Hello 2 changes  ");
> out.println( "   ");
> out.close(); //always close the output stream
> }
> public void destroy()
> {
> System.out.println( "get rid of ");
> }
> }
> #
> I compile it and place in ROOT/WEB-INF/classes
> 
> I run catalina.
> it loads the servlet fine
> I change some text in the servlet recompile
> 
> then in the console window I get: #
> WebappClassLoader: Resource
> '/WEB-INF/classes/Test.class ' was modified; Date is now:
> Wed Aug 20 13:24:30 CST 2003 Was: Wed Aug 20 13:21:45 CST
> 2003
> get rid of
> ##
> where 'get rid of ' the text in my destroy() method,
> but no reloading.
> 
> in fact in the browser window when I do a reload I get:
> HTTP Status 503 - Servlet
> org.apache.catalina.INVOKER.Test is currently unavailable
> 
> and I can 't invoke any more servlets at all.
> 
> what am I doing wrong?
> 
> my servlet.xml file is as follows (relevant part): 
> ##
> 
> 
> 
> 
> 
> 
>  reloadable= "true " >
> 
> 
> 
> 
> I really need to get tomcat to reload those servlets
> otherwise it 's useless!
> 
> 
> -
> 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 Shutdown Issues - servlet destroy

2003-09-10 Thread Shapira, Yoav

Howdy,
Can't reproduce this one -- I use destroy (for servlets, filters), and
contextDestroyed (for context listeners) all the time without any
issues.

What's your truss output supposed to show?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Oozy [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 2:03 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat Shutdown Issues - servlet destroy
>
>Having a problem shutting down Tomcat - the servlet does not seem to be
>receiving the destroy call when tomcat shuts down - version 4.1.24 and
>4.1.27
>of tomcat, sun 1.4.1_02 jdk on solaris 2.8 and redhat 8.0 - below is a
>truss
>from solaris as it's shutting down.  Is this a bug w/ tomcat?
>
>
>poll(0xFA181B48, 0, 10) = 0
>lwp_cond_wait(0x0002C618, 0x0002C600, 0xFDF81AD0) Err#62 ETIME
>poll(0xEFB812E0, 1, 1000)   = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xF0081310, 1, 1000)   = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>accept(13, 0xFFBEDFAC, 0xFFBEDFCC, 1)   = 14
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " S", 1)   = 1
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " H", 1)   = 1
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFA181B48, 0, 10) = 0
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " U", 1)   = 1
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " T", 1)   = 1
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " D", 1)   = 1
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " O", 1)   = 1
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " W", 1)   = 1
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, " N", 1)   = 1
>poll(0xFFBED7D8, 1, 1)  = 1
>read(14, 0xFFBED840, 1) = 0
>close(14)   = 0
>close(13)   = 0
>lwp_cond_signal(0x0002CAB8) = 0
>lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>lwp_mutex_wakeup(0x0002CAA0)= 0
>lwp_mutex_lock(0x0002CAA0)  = 0
>lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
>lwp_cond_broadcast(0x00465188)  = 0
>poll(0xFA181B48, 0, 10) = 0
>lwp_mutex_lock(0x00465170)  = 0
>lwp_mutex_wakeup(0x00465170)= 0
>lwp_cond_signal(0x0002CAB8) = 0
>lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>lwp_mutex_wakeup(0x0002CAA0)= 0
>lwp_mutex_lock(0x0002CAA0)  = 0
>lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
>lwp_cond_broadcast(0x00465188)  = 0
>lwp_cond_signal(0x0002CAB8) = 0
>lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>lwp_mutex_wakeup(0x0002CAA0)= 0
>lwp_mutex_lock(0x0002CAA0)  = 0
>lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
>lwp_cond_broadcast(0x00465188)  = 0
>lwp_cond_signal(0x0002CAB8) = 0
>lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>poll(0xFA181B48, 0, 10) = 0
>lwp_mutex_wakeup(0x0002CAA0)= 0
>lwp_mutex_lock(0x0002CAA0)  = 0
>lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
>lwp_cond_broadcast(0x00465188)  = 0
>lwp_mutex_lock(0x00465170)  = 0
>lwp_mutex_wakeup(0x00465170)= 0
>lwp_cond_signal(0x0002CAB8) = 0
>lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
>lwp_mutex_wakeup(0x0002CAA0)= 0
>lw

RE: NullPointer on getParameter

2003-09-10 Thread Shapira, Yoav

Howdy,
The best thing is to come up with a way for us to reproduce it.  The
simplest, most direct way to get the exception.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Laurie Harper [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 09, 2003 6:17 PM
>To: [EMAIL PROTECTED]
>Subject: NullPointer on getParameter
>
>Hi, I'm trying to figure out a problem we've encountered since
upgrading
>to Tomcat 4.1. I've seen this both on 4.1.24 and 4.1.27. I haven't yet
>reduced it to a specific recipe for reproduction outside the context of
>my application but I do see this quite frequently so I thought I'd see
>if anyone else has come across it...
>
>The problem is that a call to getParameter is getting a
>NullPointerException in the delegation method on CoyoteRequestFacade:
>
>Caused by:
>java.lang.NullPointerException
> at org.apache.coyote.tomcat4.CoyoteRequestFacade.
>getParameter(CoyoteRequestFacade.java:178)
> at javax.servlet.ServletRequestWrapper.
>getParameter(ServletRequestWrapper.java:203)
>
>I checked the code and line 178 just a call to the wrapped
CoyoteRequest
>object, meaning that reference is null. Now, there's only two ways it
>could be null: a null reference was passed into CoyoteRequestFacade's
>constructor, or CoyoteRequestFacade.clear() was called.
>
>As I understand it, a CoyoteRequestFacade should be associated with a
>request when it starts and not released until the request has completed
>so I'm leaning towards looking at the first possibility. Can anyone
give
>me an overview of the 'life cycle' of CoyoteRequestFacade? Where is it
>created, managed, assigned/reclaimed from a particular request, etc?
>
>Better yet, has anyone run into this and found a solution? The nearest
>thing I could find was Bug# 21611 which sounds like the same problem.
> From the commentary, it doesn't look like there's a known cause yet;
>what would be the best way to track this down (as I say, I can
reproduce
>the behaviour easily here)?
>
>Thanks,
>
>L.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



NullPointer on getParameter

2003-09-10 Thread Laurie Harper
Hi, I'm trying to figure out a problem we've encountered since upgrading 
to Tomcat 4.1. I've seen this both on 4.1.24 and 4.1.27. I haven't yet 
reduced it to a specific recipe for reproduction outside the context of 
my application but I do see this quite frequently so I thought I'd see 
if anyone else has come across it...

The problem is that a call to getParameter is getting a 
NullPointerException in the delegation method on CoyoteRequestFacade:

Caused by:
java.lang.NullPointerException
at org.apache.coyote.tomcat4.CoyoteRequestFacade.
getParameter(CoyoteRequestFacade.java:178)
at javax.servlet.ServletRequestWrapper.
getParameter(ServletRequestWrapper.java:203)
I checked the code and line 178 just a call to the wrapped CoyoteRequest 
object, meaning that reference is null. Now, there's only two ways it 
could be null: a null reference was passed into CoyoteRequestFacade's 
constructor, or CoyoteRequestFacade.clear() was called.

As I understand it, a CoyoteRequestFacade should be associated with a 
request when it starts and not released until the request has completed 
so I'm leaning towards looking at the first possibility. Can anyone give 
me an overview of the 'life cycle' of CoyoteRequestFacade? Where is it 
created, managed, assigned/reclaimed from a particular request, etc?

Better yet, has anyone run into this and found a solution? The nearest 
thing I could find was Bug# 21611 which sounds like the same problem. 
From the commentary, it doesn't look like there's a known cause yet; 
what would be the best way to track this down (as I say, I can reproduce 
the behaviour easily here)?

Thanks,

L.



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


Tomcat Shutdown Issues - servlet destroy

2003-09-10 Thread Oozy
Having a problem shutting down Tomcat - the servlet does not seem to be 
receiving the destroy call when tomcat shuts down - version 4.1.24 and 4.1.27 
of tomcat, sun 1.4.1_02 jdk on solaris 2.8 and redhat 8.0 - below is a truss 
from solaris as it's shutting down.  Is this a bug w/ tomcat?


poll(0xFA181B48, 0, 10) = 0
lwp_cond_wait(0x0002C618, 0x0002C600, 0xFDF81AD0) Err#62 ETIME
poll(0xEFB812E0, 1, 1000)   = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xF0081310, 1, 1000)   = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
accept(13, 0xFFBEDFAC, 0xFFBEDFCC, 1)   = 14
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " S", 1)   = 1
poll(0xFA181B48, 0, 10) = 0
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " H", 1)   = 1
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFA181B48, 0, 10) = 0
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " U", 1)   = 1
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " T", 1)   = 1
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " D", 1)   = 1
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " O", 1)   = 1
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " W", 1)   = 1
poll(0xFFBED7D8, 1, 1)  = 1
read(14, " N", 1)   = 1
poll(0xFFBED7D8, 1, 1)  = 1
read(14, 0xFFBED840, 1) = 0
close(14)   = 0
close(13)   = 0
lwp_cond_signal(0x0002CAB8) = 0
lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
lwp_mutex_wakeup(0x0002CAA0)= 0
lwp_mutex_lock(0x0002CAA0)  = 0
lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
lwp_cond_broadcast(0x00465188)  = 0
poll(0xFA181B48, 0, 10) = 0
lwp_mutex_lock(0x00465170)  = 0
lwp_mutex_wakeup(0x00465170)= 0
lwp_cond_signal(0x0002CAB8) = 0
lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
lwp_mutex_wakeup(0x0002CAA0)= 0
lwp_mutex_lock(0x0002CAA0)  = 0
lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
lwp_cond_broadcast(0x00465188)  = 0
lwp_cond_signal(0x0002CAB8) = 0
lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
lwp_mutex_wakeup(0x0002CAA0)= 0
lwp_mutex_lock(0x0002CAA0)  = 0
lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
lwp_cond_broadcast(0x00465188)  = 0
lwp_cond_signal(0x0002CAB8) = 0
lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
poll(0xFA181B48, 0, 10) = 0
lwp_mutex_wakeup(0x0002CAA0)= 0
lwp_mutex_lock(0x0002CAA0)  = 0
lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
lwp_cond_broadcast(0x00465188)  = 0
lwp_mutex_lock(0x00465170)  = 0
lwp_mutex_wakeup(0x00465170)= 0
lwp_cond_signal(0x0002CAB8) = 0
lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
lwp_mutex_wakeup(0x0002CAA0)= 0
lwp_mutex_lock(0x0002CAA0)  = 0
lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
lwp_cond_broadcast(0x00465188)  = 0
lwp_mutex_lock(0x00465170)  = 0
lwp_mutex_wakeup(0x00465170)= 0
lwp_cond_signal(0x0002CAB8) = 0
lwp_cond_wait(0x0002CAB8, 0x0002CAA0, 0x) = 0
lwp_cond_wait(0x00465188, 0x00465170, 0x) = 0
lwp_cond_broadcast(0x00465188)  = 0
lwp_mutex_lock(0x00465170)   

Load Balancing with MOD_JK and MOD_JK2 on windows.

2003-09-10 Thread Joe Harmon
Please, please, please, can someone help.

I have spend many many days trying to get either mod_jk or mod_jk2 to
properly perform load balancing.

MOD_JK issue:  If I am using mod_jk.dll I can't even get the load
balancing to function. I can get each instance of tomcat to come up, but
I can only use them one at a time through the file, meaning that I can
only have one worker at a time in the file.  If I have one worker, I can
switch the ports and it will go to the other tomcat session.  If I try
and define multiple workers. I am unable to even use them. Here is the
configuration:

workers.tomcat_home=c:\tomcat\406
workers.java_home=c:\Program Files\Java\j2re1.4.1_01

ps=\

worker.list=ajp13, ajp14, tomcat2, tomcat3, loadbalancer

worker.ajp13.port=9009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13.tomcatId=ajp13

worker.tomcat2.port.9019
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.ajp13.tomcatId=tomcat2

worker.tomcat3.port=9029
worker.tomcat3.host=localhost
worker.tomcat3.type=ajp13
worker.tomcat3.lbfactor=1
worker.ajp13.tomcatId=tomcat3

worker.ajp14.port=9010
worker.ajp14.host=localhost
worker.ajp14.type=ajp14
worker.ajp14.secretkey=secret
worker.ajp14.credentials=myveryrandomentropy
worker.ajp14.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13, tomcat2, tomcat3

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

MOd_JK2 issue:  If I am using mod_jk2.dll (tried several builds) I get
the round robin to function, but not the stick sessions.  All three
instances of Tomcat are running on the same box using the same files
with different ports. Here is the configuration.



## This is for the first Tomcat instance ##  uses SERVER.XML
[channel.socket:lab49.provo.novell.com:9009] 
port=9009
host=127.0.0.1 

## This is for the second Tomcat instance ##  uses SERVER2.XML
[channel.socket:lab49.provo.novell.com:9019] 
port=9019
host=127.0.0.1 

## This is for the third Tomcat instance ## uses SERVER3.XML
[channel.socket:lab49.provo.novell.com:9029] 
port=9029
host=127.0.0.1 

## This is defining the worker over the AJP13 protocol. This will need
to be done for each instance. ##
[ajp13:lab49.provo.novell.com:9009]
[ajp13:lab49.provo.novell.com:9019]
[ajp13:lab49.provo.novell.com:9029]

[lb:lb]
worker=ajp13:lab49.provo.novell.com:9009
worker=ajp13:lab49.provo.novell.com:9019
worker=ajp13:lab49.provo.novell.com:9029
#tickySession=1

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=c:/apache/Apache2/conf/xx/jk2.shm
size=100
debug=0
disabled=0

[uri:/examples/*]
worker=lb:lb
worker=ajp13:localhost9009

[status:status]

[uri:/jkstatus/*]
worker=status:status

[uri:/admin/*]
worker=ajp13:lab49.provo.novell.com:9009

[uri:/nps/*] 
group=lb
stickySession=1
###End of workers2.properties## 

Joe Harmon
Web Services Support 
Novell Inc.  -  The leading provider of Information Solutions.
(801) 861-9163
[EMAIL PROTECTED]

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



tomcat won't reload my servlets

2003-09-10 Thread Nobert,Conrad
Hello,

I have the exact same issue that was posted about 20 days ago. I haven't seen a 
response yet. Any ideas?

This is my servlet:

##
import javax.servlet.http.*;
import javax.servlet.ServletException;
import java.io.PrintWriter;
import java.io.IOException;

public class Test extends HttpServlet
{

public void init() throws ServletException
{
System.out.println( "loading ");
}
/**
* Returns an HTML form to the client prompting for
their name
* and e-mail address.
*/
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException
{
//set MIME type for HTTP header
response.setContentType( "text/html ");

//get a handle to the output stream
PrintWriter out = response.getWriter();

out.println( "   ");
out.println( " Topic 3 Exercise 4 p. 14 Study
Guide  ");
out.println( "  ");
out.println( "  ");
out.println( " Hello 2 changes  ");
out.println( "   ");
out.close(); //always close the output stream
}
public void destroy()
{
System.out.println( "get rid of ");
}
}
#
I compile it and place in ROOT/WEB-INF/classes

I run catalina.
it loads the servlet fine
I change some text in the servlet recompile

then in the console window I get:
#
WebappClassLoader: Resource
'/WEB-INF/classes/Test.class ' was modified; Date is now:
Wed Aug 20 13:24:30 CST 2003 Was: Wed Aug 20 13:21:45 CST
2003
get rid of
##
where 'get rid of ' the text in my destroy() method,
but no reloading.

in fact in the browser window when I do a reload I get:
HTTP Status 503 - Servlet
org.apache.catalina.INVOKER.Test is currently unavailable

and I can 't invoke any more servlets at all.

what am I doing wrong?

my servlet.xml file is as follows (relevant part):
##











I really need to get tomcat to reload those servlets
otherwise it 's useless!


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



Help! JSP not working in Tomcat 5

2003-09-10 Thread Steve Kelem
I get a connection timed out message, even though I told the socket in my java program
not to time out.
I'm trying to deploy a bot from the book "Programming Spiders, Bots, and 
Aggregators in Java".

It's the "translate" program in chapter 4, which is supposed to 
translate a page into pig latin.
Whenever I run it in Tomcat, I get a connection timed out message, even 
though I told my socket not to time out.

1. Does Tomcat restrict access to network connections?
If so, how do I enable my application to talk to any site?  (You're 
supposed to be able to enter the url of the site you
want to translate into the .jsp form, and then the java program will do 
the translation and then output the translated page.)

2. I tried adding the following lines to conf/catalina.policy:

grant codeBase "file:${catalina.home}/webapps/translate/-" {
permission java.net.SocketPermission "*", "connect, accept, connect, 
listen, resolve";
};

grant codeBase "file:${catalina.home}/webapps/translate.war" {
permission java.net.SocketPermission "*", "connect, accept, connect, 
listen, resolve";
};

Is the specification "*" okay?  I hope I don't have to list every 
possible url.

3. I tried stopping the Tomcat service and addint the -security "start 
parameter" in the Windows Services Properties window.
How do I get the tomcat service to use this parameter always?

Thanks,
Steve Kelem


-
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: Tomcat 5 clustering

2003-09-10 Thread Filip Hanik
> 

this is not a requirement until Tomcat 5.

Filip

- Original Message - 
From: "David Rees" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 9:42 AM
Subject: Re: Tomcat 5 clustering


Filip Hanik wrote:

>  should be set in web.xml according to the latest
> servlet spec feel free to contact me with any problems you might
> have, several companies are using Tomcat 4.x replication in
> production already

Filip,

Where is the latest code for Tomcat 4.x session replication?  I would 
like to try it out on some of my test code.

I found this link:
http://www.filip.net/tomcat/tomcat-javagroups.html
Is that the latest?

Do you know what happens when you happen to upgrade the software on one 
JVM and it results in loading new classes that are stored in a sesssion? 
  Currently if you do that with Tomcat and do a context reload, the 
session is evicted, I would think the same thing would happen with 
session replication as well...

Thanks,
Dave


-
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: JNDI Context Environment settings?

2003-09-10 Thread Jon Wilmoth
Unfortunately, it does not appear Tomcat 4.x provides cross-jvm access
to the objects bound to it's jndi implementation.

http://forum.java.sun.com/thread.jsp?thread=190331&forum=51&message=1824
252

http://renaud.waldura.com/software/java/com.waldura.eclipse.jndibrowser/
doc/COMPATIBILITY.html


-Original Message-
From: Jon Wilmoth 
Sent: Tuesday, September 09, 2003 7:53 PM
To: Tomcat Users List
Subject: JNDI Context Environment settings?

If accessing a Tomcat (4.1.27 in my case) jndi tree from another jvm
(i.e. command line) what values should I use for
Context.INITIAL_CONTEXT_FACTORY, Context.PROVIDER_URL, etc. for Tomcat?

I believe 4.x has a JDNI implementation, but the description of how to
attach to it externally is not very good. If the INITIAL_CONTEXT_FACTORY
is supposed to be "org.apache.naming.java.javaURLContextFactory" (as
I've seen hinted at elsewhere) what is the syntax of such a url?

-
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 5 clustering

2003-09-10 Thread Filip Hanik
I have written a simple load balancer for Java, but literally, it sucks ass,
but works for testing and demo. find it at http://cvs.apache.org/~fhanik/
link at the bottom

Filip

- Original Message -
From: "Mats Andersson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 7:58 AM
Subject: Re: Tomcat 5 clustering


Thank you for your answers Filip!

I have now successfully tried the cluster configuration in Tomcat5 with
a simple webapp. About the
balance product, I cannot use it because I'm on windows, but thanks
anyway. Maybe my next project
will be running on Linux.

Mats

Filip Hanik wrote:

>for software, balance.sourceforge.net is excellent
>
>for hardware, be prepared to spend some cash
>
>Filip
>
>
>
>>-Original Message-
>>From: Mats Andersson [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, September 10, 2003 1:50 AM
>>To: Tomcat Users List
>>Subject: Re: Tomcat 5 clustering
>>
>>
>>Can anyone recommend a good solution for an external loadbalancer. I
>>need it to
>>have failover (two physical servers or something) and they must listen
>>on the same
>>IP of course. Another preference is a low price. My actual question is,
>>how do you do these
>>things with Tomcat?
>>
>>Thanks in advance!
>>Mats
>>
>>Ralph Einfeldt wrote:
>>
>>
>>
>>>There are two options:
>>>- Use sticky session.
>>> In this scenario you don't need session sharing to do
>>> load balancing, but it would make the system more fail
>>> safe. (If one tomcat gets out of service, sticky sessions
>>> without session sharing loose all data from the current
>>> sessions on this server)
>>>
>>>- Use no sticky sessions.
>>> In this case session sharing is a must.
>>>
>>>You can have loadbalancing without apache and still use
>>>one domainname. Just use an external loadbalancer.
>>>
>>>
>>>
>>>
>>>
-Original Message-
From: Jan Agermose [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 clustering


If you have apache in front of the different tomcat
instances, apache would route the same browsersession
to the same tomcatinstance on each request, or
not? This would make session sharing useless?





>>>-
>>>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: Tomcat 5 clustering

2003-09-10 Thread Filip Hanik
http://cvs.apache.org/~fhanik/

>Currently if you do that with Tomcat and do a context reload, the
>session is evicted, I would think the same thing would happen with
>session replication as well...

with session replication, all you have to do is to shut one server down,
upgrade it, then restart it, and it will receive all the sessions from
another node.

Filip

- Original Message -
From: "David Rees" <>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 9:42 AM
Subject: Re: Tomcat 5 clustering


Filip Hanik wrote:

>  should be set in web.xml according to the latest
> servlet spec feel free to contact me with any problems you might
> have, several companies are using Tomcat 4.x replication in
> production already

Filip,

Where is the latest code for Tomcat 4.x session replication?  I would
like to try it out on some of my test code.

I found this link:
http://www.filip.net/tomcat/tomcat-javagroups.html
Is that the latest?

Do you know what happens when you happen to upgrade the software on one
JVM and it results in loading new classes that are stored in a sesssion?
  Currently if you do that with Tomcat and do a context reload, the
session is evicted, I would think the same thing would happen with
session replication as well...

Thanks,
Dave


-
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: Ant reload task does not work with Tomcat 4.1.27

2003-09-10 Thread Tim Funk
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096

-Tim

Tarek M. Nabil wrote:
Hi everyone,

I just upgraded to Tomcat 4.1.27 and the Ant reload task is not working.

Is that a known bug? I keep searching the bug database but I can't find anything about it?



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


Error Page 500 Not working.

2003-09-10 Thread Andoni
Hello,

I am trying to implement error pages for my site.  They seem to work when I specify 
the particular exception in the web.xml file thus:

  
  java.lang.NullPointerException
  /jsp/error500.jsp
 

but not when I specify the error number as below.  What happens is that when I have 
both of these entries in the web.xml and I put a divide by zero error into my code to 
test it then it brings up the default Tomcat error page with the Exception and the 500 
at the top?


  500
  /jsp/error500.jsp
 

Am I missing something?

Andoni.

Re: problem while starting up Tomcat (v 4.1.27)

2003-09-10 Thread Tim Funk
This is HP's java. (Based on sun's jdk). Make sure your have all the patches 
and check the HP support lists for java wackiness.

-Tim

Shapira, Yoav wrote:

Howdy,
Is that a release build or some sort of test/beta?  On the JDK web site 
(http://java.sun.com/j2se/1.3/) it says 1.3.1_09 is the latest stable build: have you 
tried that?  Have you tried JDK 1.4.2?  If so, does it work?
I'm asking all these because this appears to be an internal JVM error, not a tomcat one.  Tomcat can't even access the java.net private impl classes, it only accesses the normal (Socket and ServerSocket) classes.  In turn, these use the impl classes, so it's strange for the impl class to not contain a method expected by the declaration class.

Do you have anything unusual in $CATALINA_HOME/common/endorsed?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 9:43 AM
To: Tomcat Users List
Subject: RE: problem while starting up Tomcat (v 4.1.27)
Hi Shapira

The details of JVM i'm using are as follows:

java version "1.3.1.02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.02-011206-
02:17)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-_30_jun_2003_11_52 PA2.0,
mixed mode)
thanks,
Naresh
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 6:47 PM
To: Tomcat Users List
Subject: RE: problem while starting up Tomcat (v 4.1.27)


Howdy,
Are you using the sun JVM?  If so what exact version?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 3:17 AM
To: [EMAIL PROTECTED]
Cc: Veeraraghavan, Laxminarasimhan
Subject: problem while starting up Tomcat (v 4.1.27)
Hi
When I try to start Tomcat (v4.1.27) on HP-UX (v 11.11), I'm getting the
following error:


hp64 54: ./startup.sh
Using CATALINA_BASE:   /home1/lveerara/ws/jakarta-tomcat-4.1.27
Using CATALINA_HOME:   /home1/lveerara/ws/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR: /home1/lveerara/ws/jakarta-tomcat-4.1.27/temp
Using JAVA_HOME:   /opt/java1.3
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
isClosedOrPending
   at java.net.PlainSocketImpl.initProto(Native Method)
   at java.net.PlainSocketImpl.(Unknown Source)
   at java.net.ServerSocket.(Unknown Source)
   at java.net.ServerSocket.(Unknown Source)
   at java.net.ServerSocket.(Unknown Source)
   at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultS
erverSocketFac
tory.java:96)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.jav
a:275)
   at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
   at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1
156)
   at
org.apache.catalina.core.StandardService.initialize(StandardService.java:57
9)
   at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246
)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Could any please help me out?

thanks,
Naresh Agarwal


This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.
-
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]




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-

Ant reload task does not work with Tomcat 4.1.27

2003-09-10 Thread Tarek M. Nabil
Hi everyone,

I just upgraded to Tomcat 4.1.27 and the Ant reload task is not working.

Is that a known bug? I keep searching the bug database but I can't find anything about 
it?

Thanks,
Tarek M. Nabil

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



RE: tomcat 4.03 wont start

2003-09-10 Thread Michele Emmi
Fred,
I have run into this trying to start the program from the shortcuts.  Try 
starting the program from the command line.
Michele


From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>
Subject: RE: tomcat 4.03 wont start
Date: Wed, 10 Sep 2003 12:53:41 -0400

Howdy,
I have no idea about your problem: start it with catalina.sh run instead
of start to keep the console window around, see if there are any error
messages there.
Please subscribe to the list if you want to use it -- I'm getting tired
of moderating the hundreds of junk messages every day for a few
legitimate ones like this one.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Fred Sells [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 9:40 AM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: tomcat 4.03 wont start
>
>I'm running tomcat 4.03 under windows 2000.
>
>Yesterday it worked just fine; today it won't start. just flashes the
dos
>window for a second and dies.  No log generated.
>
>I even reinstalled.
>
>I made no changes to tomcat, was working on jboss stuff the last few
days.
>do not have jboss running now since I use it for a different project.
>
>checked JAVA_HOME, TOMCAT_HOME, CATALINA_HOME and they are fine.
>
>Any ideas.
>
>please "replay all" since I am not subscribed to this list.


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) intended 
recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es

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


RE: problem while starting up Tomcat (v 4.1.27)

2003-09-10 Thread Shapira, Yoav

Howdy,
Is that a release build or some sort of test/beta?  On the JDK web site 
(http://java.sun.com/j2se/1.3/) it says 1.3.1_09 is the latest stable build: have you 
tried that?  Have you tried JDK 1.4.2?  If so, does it work?

I'm asking all these because this appears to be an internal JVM error, not a tomcat 
one.  Tomcat can't even access the java.net private impl classes, it only accesses the 
normal (Socket and ServerSocket) classes.  In turn, these use the impl classes, so 
it's strange for the impl class to not contain a method expected by the declaration 
class.

Do you have anything unusual in $CATALINA_HOME/common/endorsed?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 9:43 AM
>To: Tomcat Users List
>Subject: RE: problem while starting up Tomcat (v 4.1.27)
>
>Hi Shapira
>
>The details of JVM i'm using are as follows:
>
>
>java version "1.3.1.02"
>Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.02-011206-
>02:17)
>Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-_30_jun_2003_11_52 PA2.0,
>mixed mode)
>
>thanks,
>Naresh
>
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 6:47 PM
>To: Tomcat Users List
>Subject: RE: problem while starting up Tomcat (v 4.1.27)
>
>
>
>Howdy,
>Are you using the sun JVM?  If so what exact version?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>-Original Message-
>From: Agarwal, Naresh [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 3:17 AM
>To: [EMAIL PROTECTED]
>Cc: Veeraraghavan, Laxminarasimhan
>Subject: problem while starting up Tomcat (v 4.1.27)
>
>Hi
>When I try to start Tomcat (v4.1.27) on HP-UX (v 11.11), I'm getting the
>following error:
>
>
>
>hp64 54: ./startup.sh
>Using CATALINA_BASE:   /home1/lveerara/ws/jakarta-tomcat-4.1.27
>Using CATALINA_HOME:   /home1/lveerara/ws/jakarta-tomcat-4.1.27
>Using CATALINA_TMPDIR: /home1/lveerara/ws/jakarta-tomcat-4.1.27/temp
>Using JAVA_HOME:   /opt/java1.3
>[INFO] Registry - -Loading registry information
>[INFO] Registry - -Creating new Registry instance
>[INFO] Registry - -Creating MBeanServer
>Exception during startup processing
>java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
>isClosedOrPending
>    at java.net.PlainSocketImpl.initProto(Native Method)
>    at java.net.PlainSocketImpl.(Unknown Source)
>    at java.net.ServerSocket.(Unknown Source)
>    at java.net.ServerSocket.(Unknown Source)
>    at java.net.ServerSocket.(Unknown Source)
>    at
>org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultS
>erverSocketFac
>tory.java:96)
>    at
>org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.jav
>a:275)
>    at
>org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
>    at
>org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1
>156)
>    at
>org.apache.catalina.core.StandardService.initialize(StandardService.java:57
>9)
>    at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246
>)
>    at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>    at java.lang.reflect.Method.invoke(Native Method)
>    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
>
>Could any please help me out?
>
>thanks,
>Naresh Agarwal
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>
>
>-
>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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--

RE: tomcat 4.03 wont start

2003-09-10 Thread Shapira, Yoav

Howdy,
I have no idea about your problem: start it with catalina.sh run instead
of start to keep the console window around, see if there are any error
messages there.

Please subscribe to the list if you want to use it -- I'm getting tired
of moderating the hundreds of junk messages every day for a few
legitimate ones like this one.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Fred Sells [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 9:40 AM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: tomcat 4.03 wont start
>
>I'm running tomcat 4.03 under windows 2000.
>
>Yesterday it worked just fine; today it won't start. just flashes the
dos
>window for a second and dies.  No log generated.
>
>I even reinstalled.
>
>I made no changes to tomcat, was working on jboss stuff the last few
days.
>do not have jboss running now since I use it for a different project.
>
>checked JAVA_HOME, TOMCAT_HOME, CATALINA_HOME and they are fine.
>
>Any ideas.
>
>please "replay all" since I am not subscribed to this list.



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: problem while starting up Tomcat (v 4.1.27)

2003-09-10 Thread Agarwal, Naresh
Hi Shapira

The details of JVM i'm using are as follows:


java version "1.3.1.02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.02-011206-02:17)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.10-_30_jun_2003_11_52 PA2.0, mixed mode)

thanks,
Naresh


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 6:47 PM
To: Tomcat Users List
Subject: RE: problem while starting up Tomcat (v 4.1.27)



Howdy,
Are you using the sun JVM?  If so what exact version?

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 3:17 AM
To: [EMAIL PROTECTED]
Cc: Veeraraghavan, Laxminarasimhan
Subject: problem while starting up Tomcat (v 4.1.27)

Hi
When I try to start Tomcat (v4.1.27) on HP-UX (v 11.11), I'm getting the following 
error:
 

 
hp64 54: ./startup.sh
Using CATALINA_BASE:   /home1/lveerara/ws/jakarta-tomcat-4.1.27
Using CATALINA_HOME:   /home1/lveerara/ws/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR: /home1/lveerara/ws/jakarta-tomcat-4.1.27/temp
Using JAVA_HOME:   /opt/java1.3
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError: 
isClosedOrPending
    at java.net.PlainSocketImpl.initProto(Native Method)
    at java.net.PlainSocketImpl.(Unknown Source)
    at java.net.ServerSocket.(Unknown Source)
    at java.net.ServerSocket.(Unknown Source)
    at java.net.ServerSocket.(Unknown Source)
    at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFac
tory.java:96)
    at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:275)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
    at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1156)
    at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

 
Could any please help me out?
 
thanks,
Naresh Agarwal



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



tomcat 4.03 wont start

2003-09-10 Thread Fred Sells
I'm running tomcat 4.03 under windows 2000.

Yesterday it worked just fine; today it won't start. just flashes the dos
window for a second and dies.  No log generated.

I even reinstalled.

I made no changes to tomcat, was working on jboss stuff the last few days.
do not have jboss running now since I use it for a different project.

checked JAVA_HOME, TOMCAT_HOME, CATALINA_HOME and they are fine.

Any ideas.

please "replay all" since I am not subscribed to this list.


Tomcat + WebStart

2003-09-10 Thread Finn, Michael
Is anyone successfully using WebStart 1.2 with Tomcat 4.1.x? 

I am using Tomcat under JBoss, but that *should* be irrelevant here.

We are having a problem deploying a WebStart (1.2) application on JBoss
3.2.2RC3 (w/ Tomcat 4.1.27). When the JNLP file is downloaded, WebStart
errors out, saying it can't find the JNLP file. I can see the JNLP file
coming over the network (Ethereal), but it never gets written to disk. Odd,
since IE reads the HTTP headers and gets the MIME type, because WebStart
*is* launching. 

When the server is Jetty (JBoss 3.2.2 RC3 + Jetty 4.2.11 tarball),
everything works fine. I take the same EAR file and drop it into the
3.2.2RC3 + Tomcat 4.1.27 server, and it doesn't work. What's stranger is
that the problem only seems to be on Windows based browsers (IE6 and Moz).
When browser is Linux Mozilla, it works fine. 

I trapped the HTTP traffic, and it looks like so. In both instances, the
content looks to be identical. There is some difference in the headers, but
nothing looks obvious to me. 

With Tomcat:
GET /cwms/app/cwms.jnlp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*
Referer: http://mjf860.east.frontiercorp.com:8080/cwms/index.jsp
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818)
Host: mjf860.east.frontiercorp.com:8080
Connection: Keep-Alive
Cookie: JSESSIONID=p-rHbfPDhKlO0ipzG9xpZg**

HTTP/1.1 200 OK
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Last-Modified: Wed, 10 Sep 2003 14:08:34 GMT
Content-Type: application/x-java-jnlp-file
Content-Length: 2241
Date: Wed, 10 Sep 2003 14:37:00 GMT
Server: Apache Coyote/1.0

http://mjf860.east.frontiercorp.com:8080/cwms/
Accept-Language: en-us
Accept-Encoding: gzip, deflate
If-Modified-Since: Wed, 10 Sep 2003 15:15:21 GMT
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)
Host: mjf860.east.frontiercorp.com:8080
Connection: Keep-Alive
Cookie: JSESSIONID=+o-IddK10DhgQxXN4Frf5Q**

HTTP/1.1 200 OK
Date: Wed, 10 Sep 2003 15:36:21 GMT
Server: Jetty/4.2.11 (Windows 2000/5.0 x86 java/1.4.1-rc)
Content-Type: application/x-java-jnlp-file
Content-Length: 2241
Last-Modified: Wed, 10 Sep 2003 15:15:21 GMT



RE: Development Tools

2003-09-10 Thread Goehring, Chuck Mr., RCI - San Diego
Nihita,

I use eclipse for applet and application development.  But for servlet writing, I use 
jcreator (http://www.jcreator.com/).  The free version does not have debugger support 
but is small, Java version independent, easy/fast to install and doesn't use up 40mb 
of memory when it runs.  It also doesn't have any type of Tomcat or EJB support, but 
my server-side stuff is limited to servlets so this is not an issue.  Since is it is 
free, it can be installed on every server as needed to make quick changes during 
testing/qa.

Eclipse has a plugin for Tomcat but I haven't used it.

Chuck


-Original Message-
From: Nihita [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 5:54 AM
To: Tomcat
Subject: Development Tools


Are there any free available development tools like Oracle Developer suite  for 
developing J2EE application which are also Tomcat complaint ? And will the forms and 
pages developed using Oracle Internet development Suite work with tomcat ?

Thanks
Nihita

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



Re: Annoying taglib problem

2003-09-10 Thread Jon Wingfield
Oops. Right you are. Didn't read the error message ;(
Looks like the taglibs dtd wasn't found. Try

http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>

at the start of your tablib file.

(sorry about the line-wrap)

Jon

Thomas Hehl wrote:

I started with that, and it produced the same results. I then coded it as it is to eliminate the web.xml from being the problem.

--- Jon Wingfield <[EMAIL PROTECTED]> wrote:

Put a taglib entry in your web.xml:

 
   your_uri_here
   /WEB-INF/taglib.tld
 
and change your jsp page:

<%@ taglib uri="your_uri_here" prefix="ft" %>

As per section JSP.7.3.6.3 of the JSP 1.2 specification, available here:
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/
Also:
http://jakarta.apache.org/taglibs/guidelines.html
HTH,

Jon

Thomas Hehl wrote:


I have never used taglibs before. Be warned!:)

New setup of tomcat 4.12. The tag itself is stored in WEB-INF/lib/forerunner-webapps.jar, but the error is the same whether the jar file is there or not. I simply don't know where to look next.

I am getting the following error (edited):

2003-09-09 12:49:13 Invalid PUBLIC ID: -//Sun Microsystems, Inc.//DTD JSP Tag Library 
1.2/EN
2003-09-09 12:49:14 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException: /writings.jsp(14,6) Unable to load class 
CsvDisplayTag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
at org.apache.jasper.compiler.Parser.parseCustomTag(Unknown Source)
at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
...
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
Here is the JSP:


<%@ taglib uri="/WEB-INF/taglib.tld" prefix="ft" %>


   Forerunner International
   
   
   
   
   <%@ include file="/includes/masthead.include" %>

   Welcome
   
 
   
   <%@ include file="/includes/pagefooter.include" %>



And here is the taglib.tld file:




 1.0
 1.2
 forerunner-tags
 http://www.forerunnerintl.org/taglibs/forerunner-webapps.jar
 
   CsvDisplayTag
   forerunner.tag.CsvDisplayTag
   empty
   CSV (Commma-seperated values) Formatter
 


And here is the tag itself:

package forerunner.tag;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.JspTagException;
public class CsvDisplayTag implements Tag
{
   private PageContext pageContext;
   private Tag parent;
   public CsvDisplayTag()
   {
   super();
   }
   public int doStartTag() throws JspTagException
   {
   return SKIP_BODY;
   }
   public int doEndTag() throws JspTagException
   {
   try
   {
   pageContext.getOut().write("Hellow World!");
   } catch(java.io.IOException ex)
   {
   throw new JspTagException("IO Error:" + ex.getMessage());
   }
   return EVAL_PAGE;
   }
   public void release() {}

   public void setPageContext(final javax.servlet.jsp.PageContext pageContext)
   {
   this.pageContext=pageContext;
   }
   public Tag getParent()
   {
   return parent;
   }
   public void setParent(final Tag parent)
   {
   this.parent=parent;
   }
}
And here is a listing of forerunner-webapps.jar:

META-INF/
META-INF/MANIFEST.MF
forerunner/
forerunner/servlets/
forerunner/servlets/main/
forerunner/tag/
forerunner/servlets/main/MainControllerServlet.class
forerunner/tag/CsvDisplayTag.class
-
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: Tomcat 5 clustering

2003-09-10 Thread David Rees
Filip Hanik wrote:

 should be set in web.xml according to the latest
servlet spec feel free to contact me with any problems you might
have, several companies are using Tomcat 4.x replication in
production already
Filip,

Where is the latest code for Tomcat 4.x session replication?  I would 
like to try it out on some of my test code.

I found this link:
http://www.filip.net/tomcat/tomcat-javagroups.html
Is that the latest?
Do you know what happens when you happen to upgrade the software on one 
JVM and it results in loading new classes that are stored in a sesssion? 
 Currently if you do that with Tomcat and do a context reload, the 
session is evicted, I would think the same thing would happen with 
session replication as well...

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


Request Too Large

2003-09-10 Thread chanan braunstein
Good Morning,
I need to build a page that accepts a POST from a flash program. So
far my page has nothing in it other then some debugging code:
 
ArrayList rpd = new ArrayList();
  Enumeration names;
  for(names = req.getParameterNames(); names.hasMoreElements();)
  {
 ArrayList data = new ArrayList();
 String name = (String) names.nextElement();
 data.add(name);
 data.add(req.getParameter(name));
   System.out.println(data);
   out.println(data)
 rpd.add(data);
  }
 
When I post to the page I get the following message (that I assume is
coming from Tomcat):
 

Request Too Large

The "POST" request is too large for the internal work buffer:


The internal work buffer size is 1664 bytes.
The "POST" request size is 2302 bytes. 
 
 
Does any one know what that is and why I am getting it? It doesn't
really make sense to me. I am using Tomcat 4.1.27-LE with JDK 1.4.2 on
Win 2003.
 
 
 
Thanks,

 
Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 
 


RE: JSP problem

2003-09-10 Thread Michele Neylon:: Blacknight Solutions

> 
> Are the permissions of the userid running tomcat and 
> directory structure correct?
> 
> For example, I usually run tomcat as userid tomcat (or 
> similar), but occassionally a sysadmin will restart tomcat as 
> root. On the next restart - some files might be still owned 
> by root and then ... bad things happen.
> 

We've explored that avenue. And it's not it :-(

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.ie/
Probably the cheapest ie's in Ireland
Tel. +353 (0)59 9139897
Fax. +353 (0)59 9139897 


#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



Re: Tomcat 5 clustering

2003-09-10 Thread David Rees
Mats Andersson wrote:

Can anyone recommend a good solution for an external loadbalancer. I
 need it to have failover (two physical servers or something) and
they must listen on the same IP of course. Another preference is a
low price. My actual question is, how do you do these things with
Tomcat?
You can always use Apache with mod_jk.  That seems to work pretty well.

-Dave

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


content type charset

2003-09-10 Thread aaz
Hi,
We are using Tomcat 4.1.24 and jdk 1.4.1. And are having problems getting the HTTP 
headers returned from Tomcat to return the correct charset we need to display our 
utf-8 encoded database data. (right now our text has all the ? chars in it in place of 
the special chars)

We need tomcat to start returning
Content-Type: text/hml; charset=UTF-8

no matter what, tomcat keeps returning the http header
Content-Type: text/hml; charset=ISO-8859-1 and calls to 
response.getCharacterEncoding() keeps returning ISO-8859-1 rather than UTF-8

All of our JSP pages have:
<@page contentType="text/html; charset=UTF-8" %> and 

We are using Struts 1.1. and override ActionServlet.process and have the following 
line of code as well placed there: response.setContentType("text/html; charset=UTF-8");

In our catalina.bat we have JAVA_OPTS set = -Dfile.encoding=UTF-8

What gives? Help please!





Re: Annoying taglib problem

2003-09-10 Thread Thomas Hehl
I started with that, and it produced the same results. I then coded it as it is to 
eliminate the web.xml from being the problem.

--- Jon Wingfield <[EMAIL PROTECTED]> wrote:
>Put a taglib entry in your web.xml:
>
>   
> your_uri_here
> /WEB-INF/taglib.tld
>   
>
>and change your jsp page:
>
><%@ taglib uri="your_uri_here" prefix="ft" %>
>
>As per section JSP.7.3.6.3 of the JSP 1.2 specification, available here:
>http://www.jcp.org/aboutJava/communityprocess/final/jsr053/
>Also:
>http://jakarta.apache.org/taglibs/guidelines.html
>
>HTH,
>
>Jon
>
>Thomas Hehl wrote:
>
>> I have never used taglibs before. Be warned!:)
>> 
>> New setup of tomcat 4.12. The tag itself is stored in 
>> WEB-INF/lib/forerunner-webapps.jar, but the error is the same whether the jar file 
>> is there or not. I simply don't know where to look next.
>> 
>> I am getting the following error (edited):
>> 
>> 2003-09-09 12:49:13 Invalid PUBLIC ID: -//Sun Microsystems, Inc.//DTD JSP Tag 
>> Library 1.2/EN
>> 2003-09-09 12:49:14 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp 
>> threw exception
>> org.apache.jasper.JasperException: /writings.jsp(14,6) Unable to load class 
>> CsvDisplayTag
>>  at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
>>  at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
>>  at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
>>  at org.apache.jasper.compiler.Parser.parseCustomTag(Unknown Source)
>>  at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
>>  ...
>>  at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>>  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>>  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
>>  at 
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
>>  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>>  at 
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
>>  at java.lang.Thread.run(Thread.java:536)
>> 
>> Here is the JSP:
>> 
>> 
>> <%@ taglib uri="/WEB-INF/taglib.tld" prefix="ft" %>
>> 
>> 
>> Forerunner International
>> 
>> 
>> 
>> 
>> 
>> <%@ include file="/includes/masthead.include" %>
>> 
>> Welcome
>> 
>>   
>> 
>> 
>> <%@ include file="/includes/pagefooter.include" %>
>> 
>> 
>> 
>> And here is the taglib.tld file:
>> 
>> 
>> > "DTDs/web-jsptaglibrary_1_2.dtd">
>> 
>> 
>>   1.0
>>   1.2
>>   forerunner-tags
>>   http://www.forerunnerintl.org/taglibs/forerunner-webapps.jar
>> 
>>   
>> CsvDisplayTag
>> forerunner.tag.CsvDisplayTag
>> empty
>> CSV (Commma-seperated values) Formatter
>>   
>> 
>> 
>> 
>> And here is the tag itself:
>> 
>> package forerunner.tag;
>> 
>> import javax.servlet.jsp.*;
>> import javax.servlet.jsp.tagext.Tag;
>> import javax.servlet.jsp.JspTagException;
>> 
>> public class CsvDisplayTag implements Tag
>> {
>> private PageContext pageContext;
>> private Tag parent;
>> 
>> public CsvDisplayTag()
>> {
>> super();
>> }
>> 
>> public int doStartTag() throws JspTagException
>> {
>> return SKIP_BODY;
>> }
>> 
>> public int doEndTag() throws JspTagException
>> {
>> try
>> {
>> pageContext.getOut().write("Hellow World!");
>> } catch(java.io.IOException ex)
>> {
>> throw new JspTagException("IO Error:" + ex.getMessage());
>> }
>> return EVAL_PAGE;
>> }
>> 
>> public void release() {}
>> 
>> public void setPageContext(final javax.servlet.jsp.PageContext pageContext)
>> {
>> this.pageContext=pageContext;
>> }
>> 
>> public Tag getParent()
>> {
>> return parent;
>> }
>> public void setParent(final Tag parent)
>> {
>> this.parent=parent;
>> }
>> }
>> 
>> And here is a listing of forerunner-webapps.jar:
>> 
>> META-INF/
>> META-INF/MANIFEST.MF
>> forerunner/
>> forerunner/servlets/
>> forerunner/servlets/main/
>> forerunner/tag/
>> forerunner/servlets/main/MainControllerServlet.class
>> forerunner/tag/CsvDisplayTag.class
>> 
>> -
>> 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: JSP problem

2003-09-10 Thread Michele Neylon:: Blacknight Solutions
> Are the permissions of the userid running tomcat and 
> directory structure correct?
> 
> For example, I usually run tomcat as userid tomcat (or 
> similar), but occassionally a sysadmin will restart tomcat as 
> root. On the next restart - some files might be still owned 
> by root and then ... bad things happen.
> 
> -Tim
We have Tomcat installed centrally and it is running as root.
This might be an avenue to investigate.

M


#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



Re: JSP problem

2003-09-10 Thread Tim Funk
Are the permissions of the userid running tomcat and directory structure correct?

For example, I usually run tomcat as userid tomcat (or similar), but 
occassionally a sysadmin will restart tomcat as root. On the next restart - 
some files might be still owned by root and then ... bad things happen.

-Tim

Michele Neylon:: Blacknight Solutions wrote:

Did you run out of disk?

-Tim


No. I wish we had :-) (at least that would make sense!)

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.ie/
Probably the cheapest ie's in Ireland
Tel. +353 (0)59 9139897
Fax. +353 (0)59 9139897 

#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it 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]


RE: JSP problem

2003-09-10 Thread Michele Neylon:: Blacknight Solutions
> Did you run out of disk?
> 
> -Tim

No. I wish we had :-) (at least that would make sense!)

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.ie/
Probably the cheapest ie's in Ireland
Tel. +353 (0)59 9139897
Fax. +353 (0)59 9139897 


#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



Re: Running external processes...

2003-09-10 Thread Christopher St. John
Martin Mauri wrote:

I'm building a webapp with JSP and I need to run an external shell process
on Linux...I don't know if this is implemented by the Servlet/JSP API , can
I call it in the normal way like "System.exec()"?? or it won't worj?
 It depends on the security settings. Out of the box on Tomcat, it
shouldn't be a problem. Will you be administering the servlet container?
 In any case, I'd recommend writing a quick servlet or JSP that
does a System.exec(), just a "hello world" kind of thing, to get the
hang of it. You need to be careful to do things like drain the output
stream from the process, otherwise it might hang. Permissions and
paths can also be a bit tricky, but a quick google for "System.exec()"
ought to get you some informative hits. Keep in mind when you test
that the final deployment environment could be quite different than
your test environment (different user running Tomcat, different paths,
etc)
-cks



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


Re: JSP problem

2003-09-10 Thread Tim Funk
Did you run out of disk?

-Tim

Michele Neylon:: Blacknight Solutions wrote:

Hi all

We ran into a rather odd problem earlier today. Tomcat stopped serving JSP,
though it continued to serve servlets. Stopping and restarting did not solve
the problem.
We 'solved' it by emptying the 'work' directory.
The setup is Apache 2 with Tomcat 4.1.24 connecting using mod_jk - virtual
hosts etc.
Any ideas would be appreciated, as our 'fix' might not last for very long



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


RE: Running external processes...

2003-09-10 Thread Shapira, Yoav

Howdy,
This is generally a bad idea (you can search this list's archives for
more details).  The Servlet/JSP APIs do not provide for this, so you
have to use System.exec(...).  This will work if the security manager
allows it, so that's up to your server administrator.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Martin Mauri [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 10, 2003 11:37 AM
>To: Tomcat Users List
>Subject: Running external processes...
>
>Hi,
>
>I'm building a webapp with JSP and I need to run an external shell
process
>on Linux...I don't know if this is implemented by the Servlet/JSP API ,
can
>I call it in the normal way like "System.exec()"?? or it won't worj?
>
>thanks!
>
>Martin
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



JSP problem

2003-09-10 Thread Michele Neylon:: Blacknight Solutions
Hi all

We ran into a rather odd problem earlier today. Tomcat stopped serving JSP,
though it continued to serve servlets. Stopping and restarting did not solve
the problem.
We 'solved' it by emptying the 'work' directory.
The setup is Apache 2 with Tomcat 4.1.24 connecting using mod_jk - virtual
hosts etc.

Any ideas would be appreciated, as our 'fix' might not last for very long

Michele

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.ie/
Probably the cheapest ie's in Ireland
Tel. +353 (0)59 9139897
Fax. +353 (0)59 9139897 



#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



Running external processes...

2003-09-10 Thread Martin Mauri
Hi,

I'm building a webapp with JSP and I need to run an external shell process
on Linux...I don't know if this is implemented by the Servlet/JSP API , can
I call it in the normal way like "System.exec()"?? or it won't worj?

thanks!

Martin


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



Re: setting the trust store

2003-09-10 Thread Jon Roberts
Problem solved. I was using the same dn for the CA cert as for the 
server cert and I think that's where it was failing.

Jon Roberts
www.mentata.com
Jon Roberts wrote:
I am writing a servlet that connects to remote servers using SSL 
sockets. Although I can create SSL connections to these servers using 
other software, I can't seem to get my servlet to trust the certificate 
in tomcat.

The crux of the problem seems to be that I used a local CA. I import my 
ca certificate into a keystore:

keytool -import -alias myca -keystore /usr/local/tomcat/conf/catrust.jks 
-trustcacerts -file /tmp/cacert.pem

I use a password of "changeit". Then in the tomcat launch script I have:

CATALINA_OPTS="-Djavax.net.ssl.trustStore=/usr/local/tomcat/conf/catrust.jks 
-Djavax.net.ssl.trustStorePassword=changeit"
export CATALINA_OPTS

Yet I still get the following thrown from within my servlet:

java.security.cert.CertificateException: Signature verification failed

What could be causing this to fail? As I said, this certificate and CA 
combination works fine for SSL through non-Java clients.




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


Re: Pb with symbolic link

2003-09-10 Thread Samuel Le Berrigaud
Hi,

this doesn't work . My webapp is , for example, called foo.war and 
deployed in $CATALINA_BASE/webapps and I would like 
$CATALINA_BASE/webapps/foo/bar to be a sym link to /home/foo/bar.

What then exactly should be in server.xml ?

Thanks in advance,

SaM

Brandon M. Blank wrote:

Oops.. small typo in my last post:

Don't forget to add the closing "/" in the Resources directive.

Eg:



should be



-Original Message-
From: Brandon M. Blank [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 9:48 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Pb with symbolic link

Sure, 

In your server.xml configuration, your context is defined by default as
follows:
 

To allow the use of symlinks, use this:




Obviously change parameters as necessary for your deployment.

BB

-Original Message-
From: Thomas Hehl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 9:42 AM
To: Tomcat Users List
Subject: RE: Pb with symbolic link

Could you put your context remark in context (:) for us newbies? Will
this go in the web.xml file? Under which tags?
Please forgive my ignorance;)

--- "Brandon M. Blank" <[EMAIL PROTECTED]> wrote:
 

In your context definition, add the following:



Good Luck!

-Original Message-
From: Samuel Le Berrigaud [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 8:30 AM
To: Tomcat Users List
Subject: Pb with symbolic link

Hi everyone,

I have a problem upgrading my Tomcat from 4.0.6 to 4.1.27.  I had a 
symbolic link in a webapp context referencing some place outside this 
context, and had no probleme with tomcat 4.0 to access the files under 
the referenced folder. I upgraded my tomcat, every thing works fine 
except I can no longer access the files of the referenced directory ! 
Has anyone encontered the same problem ? Is there any solution to
   

access
 

those files ?

Thanks,

SaM

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



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


Custom Resource Factory

2003-09-10 Thread Pitre, Russell
Does anyone know where I can find additional information on building a
custom resource factory other than this?

 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm
l

 

I'm looking to build a resource factory that will give me a reference to
another class that will make LDAP queries.

 

 

 

Any help would be appreciated

 

Russ

 

 

 



RE: Pb with symbolic link

2003-09-10 Thread Brandon M. Blank
Oops.. small typo in my last post:

Don't forget to add the closing "/" in the Resources directive.

Eg:



should be



-Original Message-
From: Brandon M. Blank [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 9:48 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Pb with symbolic link

Sure, 

In your server.xml configuration, your context is defined by default as
follows:

 

To allow the use of symlinks, use this:





Obviously change parameters as necessary for your deployment.

BB


-Original Message-
From: Thomas Hehl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 9:42 AM
To: Tomcat Users List
Subject: RE: Pb with symbolic link

Could you put your context remark in context (:) for us newbies? Will
this go in the web.xml file? Under which tags?

Please forgive my ignorance;)

--- "Brandon M. Blank" <[EMAIL PROTECTED]> wrote:
>In your context definition, add the following:
>
>
>
>Good Luck!
>
>-Original Message-
>From: Samuel Le Berrigaud [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, September 10, 2003 8:30 AM
>To: Tomcat Users List
>Subject: Pb with symbolic link
>
>Hi everyone,
>
>I have a problem upgrading my Tomcat from 4.0.6 to 4.1.27.  I had a 
>symbolic link in a webapp context referencing some place outside this 
>context, and had no probleme with tomcat 4.0 to access the files under 
>the referenced folder. I upgraded my tomcat, every thing works fine 
>except I can no longer access the files of the referenced directory ! 
>Has anyone encontered the same problem ? Is there any solution to
access
>
>those files ?
>
>Thanks,
>
>SaM
>
>
>-
>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: Tomcat 5 clustering

2003-09-10 Thread Mats Andersson
Thank you for your answers Filip!

I have now successfully tried the cluster configuration in Tomcat5 with 
a simple webapp. About the
balance product, I cannot use it because I'm on windows, but thanks 
anyway. Maybe my next project
will be running on Linux.

Mats

Filip Hanik wrote:

for software, balance.sourceforge.net is excellent

for hardware, be prepared to spend some cash

Filip

 

-Original Message-
From: Mats Andersson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 1:50 AM
To: Tomcat Users List
Subject: Re: Tomcat 5 clustering
Can anyone recommend a good solution for an external loadbalancer. I 
need it to
have failover (two physical servers or something) and they must listen 
on the same
IP of course. Another preference is a low price. My actual question is, 
how do you do these
things with Tomcat?

Thanks in advance!
Mats
Ralph Einfeldt wrote:

   

There are two options:
- Use sticky session.
In this scenario you don't need session sharing to do 
load balancing, but it would make the system more fail 
safe. (If one tomcat gets out of service, sticky sessions 
without session sharing loose all data from the current 
sessions on this server)

- Use no sticky sessions.
In this case session sharing is a must.
You can have loadbalancing without apache and still use 
one domainname. Just use an external loadbalancer.



 

-Original Message-
From: Jan Agermose [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 clustering
If you have apache in front of the different tomcat 
instances, apache would route the same browsersession 
to the same tomcatinstance on each request, or
not? This would make session sharing useless?

  

   

-
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: Annoying taglib problem

2003-09-10 Thread Jon Wingfield
Put a taglib entry in your web.xml:

  
your_uri_here
/WEB-INF/taglib.tld
  
and change your jsp page:

<%@ taglib uri="your_uri_here" prefix="ft" %>

As per section JSP.7.3.6.3 of the JSP 1.2 specification, available here:
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/
Also:
http://jakarta.apache.org/taglibs/guidelines.html
HTH,

Jon

Thomas Hehl wrote:

I have never used taglibs before. Be warned!:)

New setup of tomcat 4.12. The tag itself is stored in WEB-INF/lib/forerunner-webapps.jar, but the error is the same whether the jar file is there or not. I simply don't know where to look next.

I am getting the following error (edited):

2003-09-09 12:49:13 Invalid PUBLIC ID: -//Sun Microsystems, Inc.//DTD JSP Tag Library 
1.2/EN
2003-09-09 12:49:14 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException: /writings.jsp(14,6) Unable to load class 
CsvDisplayTag
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
at org.apache.jasper.compiler.Parser.parseCustomTag(Unknown Source)
at org.apache.jasper.compiler.Parser.parseElements(Unknown Source)
...
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
Here is the JSP:


<%@ taglib uri="/WEB-INF/taglib.tld" prefix="ft" %>


Forerunner International




<%@ include file="/includes/masthead.include" %>

Welcome

  

<%@ include file="/includes/pagefooter.include" %>



And here is the taglib.tld file:




  1.0
  1.2
  forerunner-tags
  http://www.forerunnerintl.org/taglibs/forerunner-webapps.jar
  
CsvDisplayTag
forerunner.tag.CsvDisplayTag
empty
CSV (Commma-seperated values) Formatter
  


And here is the tag itself:

package forerunner.tag;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.JspTagException;
public class CsvDisplayTag implements Tag
{
private PageContext pageContext;
private Tag parent;
public CsvDisplayTag()
{
super();
}
public int doStartTag() throws JspTagException
{
return SKIP_BODY;
}
public int doEndTag() throws JspTagException
{
try
{
pageContext.getOut().write("Hellow World!");
} catch(java.io.IOException ex)
{
throw new JspTagException("IO Error:" + ex.getMessage());
}
return EVAL_PAGE;
}
public void release() {}

public void setPageContext(final javax.servlet.jsp.PageContext pageContext)
{
this.pageContext=pageContext;
}
public Tag getParent()
{
return parent;
}
public void setParent(final Tag parent)
{
this.parent=parent;
}
}
And here is a listing of forerunner-webapps.jar:

META-INF/
META-INF/MANIFEST.MF
forerunner/
forerunner/servlets/
forerunner/servlets/main/
forerunner/tag/
forerunner/servlets/main/MainControllerServlet.class
forerunner/tag/CsvDisplayTag.class
-
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]


  1   2   >