RE: Server Alias

2004-09-15 Thread Andy Eastham
Dionisio,

The first option, with multiple alias tags.

Andy

 -Original Message-
 From: Dionisio Ruiz de Zárate [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2004 15:28
 To: Tomcat Users List
 Subject: Re: Server Alias
 
 i have see the doc.
 but if i have several aliases for one host how must i solve it?
 Aliasmyalias1.com/Alias
 Aliasmyalias2.com/Alias
 AliasmyaliasX.com/Alias
 
 or
 Aliasmyalias1.com myalias2.com myaliasX.com/Alias
 
 thanks
 
 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 15, 2004 10:32 AM
 Subject: Re: Server Alias
 
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
 
 Between the host tag you can use
 
 Aliasmyalias.com/Alias
 
 Mark
 
 On 14 Sep 2004, at 23:20, Dionisio Ruiz de Zárate wrote:
 
  Hello for configurin one alias in apache i use the serverAlias
  there is any form for configure several ServerAlias for one domain in
  tomcat
  4?
  thanks
 
 
 
  -
  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: Unable to integrate Apache 2.0.24, mod_jk2 with Tomcat 5.

2004-09-03 Thread Andy Eastham
Joao,

The way I do this is to forward all of a subdirectories requests to a webapp
on tomcat, and then I give my servlets an arbitrary extension (I use .isa
for irrelevant reasons).

For example, in workers2.properties, I forward everything to the apache url
/control to tomcat:
[uri:localhost/control/*]
worker=ajp13:localhost:8009

[uri:wwws/control/]
worker=ajp13:localhost:8009

[uri:127.0.0.1/control/*]
worker=ajp13:localhost:8009

Then in tomcats server.xml:
 Host name=xxx.xx.xxx.xx.xx debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
 Aliaswww.xxx.com/Alias
 Alias192.168.0.102/Alias
 Aliaslocalhost/Alias
 Aliaswwws/Alias
 Alias127.0.0.1/Alias


 Context path=control docBase=
debug=1/

 Valve
className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=home_access_log. suffix=.txt
 pattern=common resolveHosts=false/
/Host

Note the context path for control, and the aliases for different urls your
server may be called by.

Then in the web.xml for the control webapp (under WEB-INF directory):
servlet
servlet-name
myServlet
/servlet-name
servlet-class
com..servlet.myServlet
/servlet-class
load-on-startup1/load-on-startup
/servlet


servlet-mapping
servlet-name
myServlet
/servlet-name
url-pattern
*.isa
/url-pattern
/servlet-mapping

This maps any requests to anything.isa to my servlet.

If you don't want to use the extension method, you can use the invoker
servlet supplied with Tomcat.

This method requires that you redirect a subdirectory, not all apache
requests.  I don't know if you can redirect all apache requests, but that
would lose some of the benefits of using apache with tomcat, eg serving
images and other static content directly from apache.

Hope this helps,

Andy



 -Original Message-
 From: João Gil ACE-SC [mailto:[EMAIL PROTECTED]
 Sent: 03 September 2004 12:18
 To: Tomcat Users List
 Subject: RE: Unable to integrate Apache 2.0.24, mod_jk2 with Tomcat 5.
 
 
 Hello,
 
 Thank's to Andy Eastham solution I managed to get Apache to forward *.jsp
 requests to Tomcat. In adition I also discovered
 that I had to define localhost(127.0.0.1) in JK2.properties file as
 without this config Tomcat(JK2) was listening on the wrong
 IP(0.0.0.0.).
 
 Servlets are still not being forwarded - Apache reports - 404 file not
 found when I click on, for example, - http://localhost/MyServlet.
 MyServlet exists on my root_path as MyServlet.class . Can anyone tell me
 how to prevent this error and forward the request to
 Tomcat5?
 
 Warmest Regards
 Joao Gil
 
 
 
 
   Andy Eastham
   [EMAIL PROTECTED]To:   'Tomcat Users
 List' [EMAIL PROTECTED]
   om  cc:
Subject:  RE: Unable to
 integrate Apache 2.0.24 with Tomcat 5.
   02-09-2004 16:41
   Please respond to
   Tomcat Users
   List
 
 
 
 
 
 
 Joao,
 
 I looked at that url and the way redirections are configured is different
 to
 mine.
 
 I do NOT have things like
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 Location /mywebapp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 (in fact these look like mod_jk configuration to me)
 
 Instead, my workers2.properties is as follows:
 [logger.apache2]
 #level=DEBUG
 
 [shm]
 file=/usr/local/apache2/logs/shm.file
 size=1048576
 
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 # Uri mapping
 [uri:192.168.0.103/wisadmin/*]
 worker=ajp13:localhost:8009
 
 [uri:localhost/wisadmin/*]
 worker=ajp13:localhost:8009
 
 [uri:wis/wisadmin/]
 worker=ajp13:localhost:8009
 
 [uri:127.0.0.1/wisadmin/*]
 worker=ajp13:localhost:8009
 
 Note that the URIs are mapped in this file.
 
 Give this a try,
 
 Andy
 
  -Original Message-
  From: João Gil ACE-SC [mailto:[EMAIL PROTECTED]
  Sent: 02 September 2004 16:25
  To: [EMAIL PROTECTED]
  Subject: Unable to integrate Apache 2.0.24 with Tomcat 5.
 
 
  Greatings,
 
  I am trying to integrate Apache 2.0.24 with Tomcat 5 with no success.
 
  The best solution I have found on the net is at
  http://www.dynamicobjects.com/d2r/archives/002574.html
 
  After configuring Apache and Tomcat as instructed, both execute with
  no problem. But Apache is still not forwarding JSP pages/Servlets
  to Tomcat. Can anyone help me?
 
  Warmest Regards
  Joao Gil

RE: Unable to integrate Apache 2.0.24 with Tomcat 5.

2004-09-02 Thread Andy Eastham
Joao,

I looked at that url and the way redirections are configured is different to
mine.

I do NOT have things like
Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location

Location /mywebapp
JkUriSet worker ajp13:localhost:8009
/Location

(in fact these look like mod_jk configuration to me)

Instead, my workers2.properties is as follows:
[logger.apache2]
#level=DEBUG

[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:192.168.0.103/wisadmin/*]
worker=ajp13:localhost:8009

[uri:localhost/wisadmin/*]
worker=ajp13:localhost:8009

[uri:wis/wisadmin/]
worker=ajp13:localhost:8009

[uri:127.0.0.1/wisadmin/*]
worker=ajp13:localhost:8009

Note that the URIs are mapped in this file.

Give this a try,

Andy

 -Original Message-
 From: João Gil ACE-SC [mailto:[EMAIL PROTECTED]
 Sent: 02 September 2004 16:25
 To: [EMAIL PROTECTED]
 Subject: Unable to integrate Apache 2.0.24 with Tomcat 5.
 
 
 Greatings,
 
 I am trying to integrate Apache 2.0.24 with Tomcat 5 with no success.
 
 The best solution I have found on the net is at
 http://www.dynamicobjects.com/d2r/archives/002574.html
 
 After configuring Apache and Tomcat as instructed, both execute with
 no problem. But Apache is still not forwarding JSP pages/Servlets
 to Tomcat. Can anyone help me?
 
 Warmest Regards
 Joao Gil
 
 
 
 -
 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: understanding web.xml

2004-08-17 Thread Andy Eastham
Also look at the sample chapter at http://www.moreservlets.com/

Andy

 -Original Message-
 From: Thilo Krawietz [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 08:07
 To: Tomcat Users List
 Subject: Re: understanding web.xml
 
 Hi Tobias,
 
 in Suns official Servlet specification all elements of web.xml are
 explained widely, so i would suggest, that you study this one. You can
 get it here:
 
 http://java.sun.com/products/servlet/download.html
 
 Hope this helps  regards,
 
 Thilo
 
 
 Tobias Eriksson wrote:
 
 Hi
  I have been searching the web some for information about how to
 configure / setup; web.xml, but haven't really found anything. I thought
 there would be something in the TOMCAT documentation, perhaps I wasn't
 to thorough when I browsed through it. Does anyone have a link to some
 tutorial or article that explains the web.xml?
 
 Regards
  Tobias
 
 
 
 -
 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: Too many open files on Solaris

2004-06-16 Thread Andy Eastham
The first thing that came up in Google was this, which might help:

http://support.bea.com/support_news/product_troubleshooting/Too_Many_Open_Fi
les_Pattern.html

Andy

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Davor Cengija
 Sent: 16 June 2004 09:59
 To: [EMAIL PROTECTED]
 Subject: Too many open files on Solaris
 
 My application is hitting that 'too many open files' limit on Solaris.
 
 Jun 15, 2004 11:23:01 AM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: Too many open files
 java.net.SocketException: Too many open files
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
 at java.net.ServerSocket.implAccept(ServerSocket.java:448)
 at java.net.ServerSocket.accept(ServerSocket.java:419)
 at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Default
 ServerSocketFactory.java:107)
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.ja
 va:387)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:557)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
 ava:683)
 at java.lang.Thread.run(Thread.java:534)
 Jun 15, 2004 11:23:01 AM org.apache.tomcat.util.net.PoolTcpEndpoint
 closeServerSocket
 SEVERE: Caught exception trying to unlock accept on 8080
 java.net.SocketException: Too many open files
 Jun 15, 2004 11:23:01 AM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 WARNING: Reinitializing ServerSocket
 
 I realize that increasing file descriptor limit per process could help a
 bit, but my system administrator simply doesn't want to do that (since it
 requires restart).
 
 Now, the problem is how to avoid too many open files exception. Any
 suggestions regarding Tomcat (or Apache) configuration, coding practice,
 some runtime operating system parameters would be greatly appreciated.
 
 Here's my configuration:
 
 Default Solaris 8 (I believe) installation on 2CPU+4GB RAM box. TCP
 connection wait timeout (I believe that the correct wording) is decreased
 from 240sec to 60sec and that's the only parameter changed on Solaris.
 
 Tomcat 4.1.30 with j2sdk 1.4.2_04 (server mode) with Apache 2.0 as a
 proxy.
 Every single request goes through Apache which then routes it to Tomcat.
 600.000 hits and cca 3GB of data daily, with peaks during working hours,
 of
 course, about 50.000 hits per hour. The delivered content consists mostly
 of small images (3-20k) delivered directly from a database (servlet sets
 content type etc, img src=/preview?id=123 style)
 
 Application lives about 24hours and then dies with the exception shown
 above. As far as I can see, all input- and output- streams are flushed and
 closed, at least in my application. Cannot guarantee for the underlining
 libraries.
 
 Somehow I think that I cannot squeeze the application anymore and that
 we're
 hitting tomcat+solaris limit.
 
 Ahm... whoever managed to completelly read this rather long post I hope
 will
 have some suggestions.
 
 Thanks in advance!
 
 Cheers,
 Davor
 --
 Davor Cengija, [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: How to (Unique value)?

2004-06-16 Thread Andy Eastham
Unique keys are generated by using the AUTO_INCREMENT attribute on an
integer column.  

http://dev.mysql.com/doc/mysql/en/example-AUTO_INCREMENT.html

Andy

 -Original Message-
 From: A Z [mailto:[EMAIL PROTECTED]
 Sent: 16 June 2004 12:28
 To: [EMAIL PROTECTED]
 Subject: How to (Unique value)?
 
 
 4.0.14
 
 Its rather a general SQL question, I'll ask it as I'm
 using MySQL.
 
 An converted table has field of type VarChar(6),
 containing alphanumeric chars.
 Is it possible to run a query to generate a unique key
 so this can be used for new record?
 
 regards
 
 
 
 
 
 
 ___ALL-NEW Yahoo!
 Messenger - so many all-new ways to express yourself
 http://uk.messenger.yahoo.com
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]




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



RE: Repost... no response from numerous posts

2004-06-14 Thread Andy Eastham
Jack,

I think what you are looking for is the following set of directives:

In httpd.conf, in the Virtual Host section something like the following:
Location /control/
JkUriSet worker ajp13:localhost:8009
/Location
Location /wwwsadmin/
JkUriSet worker ajp13:localhost:8009
/Location

Then in workers2.properties:
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:192.168.0.102/control/*]
worker=ajp13:localhost:8009

[uri:external.host.name/control/*]
worker=ajp13:localhost:8009

[uri:localhost/control/*]
worker=ajp13:localhost:8009

[uri:internal.host.name/control/]
worker=ajp13:localhost:8009

[uri:127.0.0.1/control/*]
worker=ajp13:localhost:8009

[uri:192.168.0.102/wwwsadmin/*]
worker=ajp13:localhost:8009

[uri:localhost/wwwsadmin/*]
worker=ajp13:localhost:8009

[uri: external.host.name /wwwsadmin/]
worker=ajp13:localhost:8009

[uri:internal.host.name/wwwsadmin/]
worker=ajp13:localhost:8009

[uri:127.0.0.1/wwwsadmin/*]
worker=ajp13:localhost:8009

You may not need all the variations of name and IP address in
workers2.properties, but I've added them all in and it works...

Also, I've just noticed that on my laptop, I've only got the
workers2.properties file and settings, not the Location directives in
httpd.conf, and that seems to work too.  However, the above is taken from a
production Solaris 9 server.

Andy

 -Original Message-
 From: Jack Lauman [mailto:[EMAIL PROTECTED]
 Sent: 12 June 2004 01:53
 To: Tomcat Users List
 Subject: Re: Repost... no response from numerous posts
 
 Apache and tomcat are on the same box.  I'd prefer to be able to do it
 the way I did in the past.  Has this feature been intentionally removed
 from jk2?
 
 Jack
 
 Keene, David wrote:
 
  Try looking at mod_rewrite with the proxy mode on.  There were a couple
  of email yesterday about it.
 
  dave
 
  -Original Message-
  From: Jack Lauman [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 5:08 PM
  To: Tomcat Users List
  Subject: Repost... no response from numerous posts
 
  I've posted this same question on the apache and tomcat lists for the
  past six weeks and gotten no answers.  Not even an insult saying the
  question was stupid.  If I could find the answer in the docs I wouldn't
  be asking.
 
  I have virtual host in apache 2.0.49 with mod_jk2 its DocumentRoot is
  domain.com it has a subdirectory called members (i.e.
  domain.com/members) that has an html doc with links to three different
  tomcat apps.  (i.e. domain.com/members/index.html with a link of
  http://www.domain.com/members/minutes/index.jsp).
 
  On the tomcat 5.0.24 side I have a minutes webapp (minutes.war) in the
  default context (i.e. $TOMCAT_HOME/webapps/minutes.war) and deploys
  under the directory minutes.  (The members directory does not exist on
  the tomcat side).
 
  How do you map the apache path of
  http://www.domain.com/members/minutes/index.jsp to the tomcat minutes
  app?
 
  In the past using both of these would worked:
  In mod_webapp/warp connector I could use:
  WebAppDeploy minutes warpConnection /members/minutes/
 
  In mod_jk I could use:
  JkMount /members/minutes/*.jsp Worker
  JkMount /members/minutes/*.do Worker
 
  The question
  Is this possible in mod_jk2 and if so how do you do it?
 
  TIA
 
  Jack
 
 
  -
  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: Common/lib works shared/lib doesn't

2004-06-11 Thread Andy Eastham
Marc,

The only issue with having jars in common/lib, is that any static class
variables are shared across every webapp, as the class loader only loads
these classes once per server.  Classes under webapp/WEB-INF/lib are loaded
once per webapp and invisible to other webapps. 

For example, if you're using log4j, you can get every webapp logging to the
same file, even if each webapp initialises logging separately (the webapp
that initialises last wins).  This is because log4j uses static variables
to hold log configuration.  To prevent this, I keep a copy of log4j.jar in
webapp/WEB-INF/lib for every webapp.  I keep most other jars in common/lib
though

This is not to say that everything should be in webapp/WEB-INF/lib, just
that its worth knowing that there can be confusing consequences of sharing
jars across webapps.

Andy

 -Original Message-
 From: Wangenheim, Marc [mailto:[EMAIL PROTECTED]
 Sent: 11 June 2004 15:18
 To: Tomcat Users List
 Subject: RE: Common/lib works shared/lib doesn't
 
 
 OK I'll leave it in common/lib. The problem with WEB-INF/lib is that is
 takes too much time to update all webapps. We have a rather cumbersome
 environment. Each app has to go through four environments (development,
 integration, certification, production) before it is available to the
 customer. Hopping from one environment to the next can take up to two
 days each because after Sarbanes-Oxley all we developers have access to
 is development and that's it. Now imagine I have 30 apps using this jar.
 If I need to make a change to the jar it becomes a nightmare to deploy.
 
 Thanks for the help tho =)
 
 
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 11, 2004 9:56 AM
 To: Tomcat Users List
 Subject: RE: Common/lib works shared/lib doesn't
 
 
 
 Hi,
 It's OK to leave it in common/lib.  (IMHO it's also fine to have a copy
 for each webapp in WEB-INF/lib, but you stated you don't want that).
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 
 **
 
 The content of this e-mail message and any attachments are confidential
 and may be
 
 legally privileged, intended solely for the addressee.  If you are not the
 intended
 
 recipient, be advised that any use, dissemination, distribution, or
 copying of this
 
 e-mail is strictly prohibited.  If you receive this message in error,
 please notify
 
 the sender immediately by reply email and destroy the message and its
 attachments.
 
 **
 
 -
 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 source being shown (not being executed)

2004-06-09 Thread Andy Eastham
Michael,

If you put the JSPs under the WEB-INF folder of the web app, Tomcat will be
unable to serve them directly.

Does that make any difference?

Andy

 -Original Message-
 From: Schalk [mailto:[EMAIL PROTECTED]
 Sent: 08 June 2004 20:43
 To: 'Tomcat Users List'
 Subject: RE: JSP source being shown (not being executed)
 
 If all .html files should go to this try using a filter instead.
 
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.com
 
 This message contains information that is considered to be sensitive or
 confidential and may not be forwarded or disclosed to any other party
 without the permission of the sender. If you received this message in
 error,
 please notify me immediately so that I can correct and delete the original
 email. Thank you.
 
 :: -Original Message-
 :: From: Schalk [mailto:[EMAIL PROTECTED]
 :: Sent: Tuesday, June 08, 2004 9:27 PM
 :: To: 'Tomcat Users List'
 :: Subject: RE: JSP source being shown (not being executed)
 ::
 :: I stand under correction but, it may even be that this not allowed at
 all
 or
 :: anymore. Try rather creating another extension for these files that you
 can
 :: map to. Probably the easiest.
 ::
 :: Kind Regards
 :: Schalk Neethling
 :: Web Developer.Designer.Programmer.President
 :: Volume4.Development.Multimedia.Branding
 :: emotionalize.conceptualize.visualize.realize
 :: Tel: +27125468436
 :: Fax: +27125468436
 :: email:[EMAIL PROTECTED]
 :: web: www.volume4.com
 ::
 :: This message contains information that is considered to be sensitive or
 :: confidential and may not be forwarded or disclosed to any other party
 :: without the permission of the sender. If you received this message in
 error,
 :: please notify me immediately so that I can correct and delete the
 original
 :: email. Thank you.
 ::
 :: :: -Original Message-
 :: :: From: Michael Mehrle [mailto:[EMAIL PROTECTED]
 :: :: Sent: Tuesday, June 08, 2004 8:44 PM
 :: :: To: Tomcat Users List
 :: :: Subject: Re: JSP source being shown (not being executed)
 :: ::
 :: :: Actually, I'm not running Apache right now. This has something to do
 with
 :: my
 :: :: servlet context (*.html) not being sent to the JSP engine - it's
 treating
 :: it
 :: :: like regular HTML right now. Strange, since my other mappings seem
 to
 :: work
 :: :: fine (*.do).
 :: ::
 :: :: Michael
 :: ::
 :: ::
 :: :: - Original Message -
 :: :: From: Schalk [EMAIL PROTECTED]
 :: :: To: 'Tomcat Users List' [EMAIL PROTECTED]
 :: :: Sent: Tuesday, June 08, 2004 11:23 AM
 :: :: Subject: RE: JSP source being shown (not being executed)
 :: ::
 :: ::
 :: :: Just a thought but, if you are running both Apache and Tomcat,
 Apache
 is
 :: :: probably picking up the .html extension and tries to display the
 content
 :: of
 :: :: the file which will result in it displaying the code.
 :: ::
 :: :: Kind Regards
 :: :: Schalk Neethling
 :: :: Web Developer.Designer.Programmer.President
 :: :: Volume4.Development.Multimedia.Branding
 :: :: emotionalize.conceptualize.visualize.realize
 :: :: Tel: +27125468436
 :: :: Fax: +27125468436
 :: :: email:[EMAIL PROTECTED]
 :: :: web: www.volume4.com
 :: ::
 :: :: This message contains information that is considered to be sensitive
 or
 :: :: confidential and may not be forwarded or disclosed to any other
 party
 :: :: without the permission of the sender. If you received this message
 in
 :: error,
 :: :: please notify me immediately so that I can correct and delete the
 :: original
 :: :: email. Thank you.
 :: ::
 :: :: :: -Original Message-
 :: :: :: From: Michael Mehrle [mailto:[EMAIL PROTECTED]
 :: :: :: Sent: Tuesday, June 08, 2004 7:58 PM
 :: :: :: To: Tomcat Users List
 :: :: :: Subject: JSP source being shown (not being executed)
 :: :: ::
 :: :: :: For some reason my JSP source is being shown - it's not being
 compiled
 :: :: and
 :: :: :: executed. It might be worthwhile mentioning that I am mapping
 some
 :: :: servlet
 :: :: :: context as *.html, which redirects to this jsp - but it worked in
 :: another
 :: :: :: app of mine and inside my new app it doesn't work.
 :: :: ::
 :: :: :: I'm running Tomcat 5.0.26 btw.
 :: :: ::
 :: :: :: Any input would be welcome.
 :: :: ::
 :: :: :: Michael
 :: :: ::
 :: :: ::
 :: :: ::
 -
 :: :: :: To unsubscribe, e-mail: tomcat-user-
 [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 

RE: AW: IP Adresses

2004-06-09 Thread Andy Eastham
Gunnar,

You are contacting the developers of Tomcat.  I'm not one myself, but I bet
some of the people who have put in vast amounts of their own time
voluntarily to develop Tomcat would be quite offended by your comment.

I also wouldn't be surprised if the reason that you can't run another web
server on port 80 is due to your own misconfiguration and not actually a bug
in Tomcat at all.  

But as Tomcat is open source, you could of course check the source yourself
to confirm this.  If you did indeed find a bug, you could even fix it.
That's how open source software works. 

Andy

 -Original Message-
 From: Gunnar Pörschke [mailto:[EMAIL PROTECTED]
 Sent: 09 June 2004 15:09
 To: 'Tomcat Users List'
 Subject: AW: AW: IP Adresses
 
 Thanks, this time it helps. But Tomcat still blocking all my ip adresses.
 I
 cannot run other web server on the other IP with the port 80 :(
 
 Nevertheless I'll find a different solution.
 How can we contact the developer of tomcat? Maybe it is a bug and will be
 fixed in version 6 or 7 ;-)
 
 Many thanks!
 
 Gunnar
 
 -Ursprüngliche Nachricht-
 Von: David Smith [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 9. Juni 2004 15:26
 An: Tomcat Users List
 Betreff: Re: AW: IP Adresses
 
 
 Use the address attribute of your connector to make the connector listen
 on only one IP.
 
 Connector port=8080 address=192.168.0.10 ...all the rest /
 
 --David
 
 Gunnar Pörschke wrote:
 
 :-( this is how to configure remote ip adresses. This doesn't help at
 all... I need to configure the ip adress for my (local) tomcat itself
  Tomcat currently listen to all incoming connections no matter if
 they come from network interface card 1 or network interface card 2
 : Any other suggestion?
 
 grunar
 
 -Ursprüngliche Nachricht-
 Von: Tim Funk [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 9. Juni 2004 15:07
 An: Tomcat Users List
 Betreff: Re: IP Adresses
 
 
 http://jakarta.apache.org/tomcat/faq/security.html#restrict
 
 -Tim
 
 Gunnar Pörschke wrote:
 
 
 Does anyone know how to configure tomcat to block only one specific Ip
 adress. I have one PC with two NICs. Tomcat blocks all available ip
 adress. How can I set a limitation?
 
 to anable additionally connectors in tomcats admin interface doesn`t
 work, either :-(
 
 
 
 
 -
 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]



Off Topic - Java Graphing Package

2004-05-12 Thread Andy Eastham
Hi,

Sorry this is a bit off topic, but can anyone recommend an open source or
freeware toolkit for building bar charts and graphs in java?

I am going to use it within Tomcat, but I could probably use something
that's aimed at applets if I had the source code.

Thanks to anyone who responds.

Best regards,

Andy



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



RE: Off Topic - Java Graphing Package

2004-05-12 Thread Andy Eastham
Thanks very much - I'll have a go with JFreeChart - it looks perfect on
first glance.

Andy

 -Original Message-
 From: foxgem [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2004 10:58
 To: Tomcat Users List
 Subject: Re: Off Topic - Java Graphing Package
 
 jfreechart  cewolf ( it is a taglib for jfreechart).
 u can find it at sourceforge.
 - Original Message -
 From: Andy Eastham [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 5:41 PM
 Subject: Off Topic - Java Graphing Package
 
 
  Hi,
 
  Sorry this is a bit off topic, but can anyone recommend an open source
 or
  freeware toolkit for building bar charts and graphs in java?
 
  I am going to use it within Tomcat, but I could probably use something
  that's aimed at applets if I had the source code.
 
  Thanks to anyone who responds.
 
  Best regards,
 
  Andy
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: Off Topic - Java Graphing Package

2004-05-12 Thread Andy Eastham
Thanks Ryan.  That's a useful resource.

Andy

 -Original Message-
 From: Ryan Lissack [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2004 10:44
 To: 'Tomcat Users List'
 Subject: RE: Off Topic - Java Graphing Package
 
 Hi,
 
 This might help :
 
 http://www.manageability.org/blog/stuff/open-source-structured-graphics-
 libr
 aries-in-java/view
 
 Ryan.
 
 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2004 10:41
 To: 'Tomcat Users List'
 Subject: Off Topic - Java Graphing Package
 
 
 Hi,
 
 Sorry this is a bit off topic, but can anyone recommend an open source or
 freeware toolkit for building bar charts and graphs in java?
 
 I am going to use it within Tomcat, but I could probably use something
 that's aimed at applets if I had the source code.
 
 Thanks to anyone who responds.
 
 Best regards,
 
 Andy
 
 
 
 -
 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: SSL and sessions

2004-04-21 Thread Andy Eastham
Glen,

I found this a right pain, and currently I'm using SSL for the whole app.
But this is storing up performance problems as I'm sending fairly high rez
astronomical images over SSL and I know I'll have to fix it sometime.

The way I'm thinking of getting round it is to send back a one time key in a
cookie in the redirect page, that is the key to an application visible
hashtable where I'll put the original session as the value against this key.
When the redirect occurs, I'll read my key cookie to get the one time key to
retrieve the original session, then create a new session for the insecure
request, and copy everything I need from the secure session to the new
session.

I haven't tried this yet though and if anyone's got any better ideas, I'd be
pleased to hear them...

Andy

-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED] 
Sent: 21 April 2004 13:15
To: 'Tomcat Users List'
Subject: SSL and sessions

Hi

I am using tomcat with ssl for the initial log into my application over ssl,
the problem is that if i send the application back to http (normal) the
session that i first created under ssl is different from the session that is
created going back to http.  Is there any configuration that allows the same
session to go to and from https and http with the same session id.

Cheers Glen


-
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: [OT?] Apache Portable Runtime JK2

2004-04-01 Thread Andy Eastham
Matt,

I built it on Solaris 9.  I'd already built and installed apache 2, and all
required libraries were then installed.  Are you specifically trying to do
this without installing Apache2?

If not, here's my simple notes:
build mod_jk2:

download connector src:
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

gunzip and untar the distribution, then
cd jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/native2
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-java-home=/usr/java/j2sdk1.4.2
make

Built libraries are:
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/mod_jk2.
so
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/jkjni.so

Copy these libraries into /usr/local/apache2/modules
cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so
/usr/local/apache2/modules/
cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/jkjni.so
/usr/local/apache2/modules/ 

Obviously, the java and apache paths may be different, but hopefully this
might help?

Andy


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2004 13:55
To: Tomcat Users List
Subject: [OT?] Apache Portable Runtime  JK2

Hi,

I need to build the JK2 connector on Solaris 9, I know that the APR
libraries are needed for building on linux and assume this to also be the
case with Solaris.

I have downloaded the source of APR from http://apr.apache.org but it states
that this is just alpha and not ready for system wide use. So my questions
are as follows.

1. Do I need APR to build JK2 on Solaris 9

2. If so where do I get APR and is the 0.9.4 version suitable?

3. If not then where do I get a suitable version.

Ta
Matt



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



RE: deploying servlets, missing application web.xml

2004-03-30 Thread Andy Eastham
I had this problem once when I deployed onto a live server and it drove me
mad.  I not absolutely sure what caused it, but it was something like I'd
called the webapp's WEB-INF directory web-inf, ie a case sensitivity
problem in the path.

Andy

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2004 16:40
To: Tomcat Users List
Subject: RE: deploying servlets, missing application web.xml


Hi,
Ah, a subject line ;)

The permissions are o.k as they appear to be accessible to all users
(win xp pro), and I have not altered anything in the server.xml file

OK.  So all you did was create the directory for your webapp and the
ones under it, put web.xml there, and start tomcat?  I don't know what
tomcat would say it can't find your web.xml in that case.  Do all the
tomcat examples run fine?

Yoav Shapira



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: Does anyone have a working workers2.properties file?

2004-01-19 Thread Andy Eastham
Rasmus,

This simple one works on windows and solaris.  By the way, when I changed
the shm size to 100, it didn't...

Andy

[logger.apache2]
level=DEBUG

[shm]
file=c:/Apache2/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:192.168.0.102/control/*]
worker=ajp13:localhost:8009

-Original Message-
From: Rasmus Munk [mailto:[EMAIL PROTECTED] 
Sent: 16 January 2004 23:32
To: 'Tomcat Users List'
Subject: Does anyone have a working workers2.properties file?

Hi

I am looking for a working workers2.properties file to use as a template. I
have seen a lot of examples of sections workers2.properties files, but I
would like to see a complete file.

I am running IIS 5.0 and tomcat 4.1.27 using isapi_redirector2.dll 2.0.2

Thanks,

Rasmus


-
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: using mod_rewrite with mod_jk2

2003-12-18 Thread Andy Eastham
Jon,

I'm pretty sure you can, because I once had a problem which was fixed by
swapping the order of the LoadModule statements for mod_jk2 and
mod_rewrite.

Not an exact answer, but hopefully some encouragement...

Andy

-Original Message-
From: jon yeargers [mailto:[EMAIL PROTECTED] 
Sent: 17 December 2003 18:01
To: [EMAIL PROTECTED]
Subject: using mod_rewrite with mod_jk2

In what order do the various mod_* bits interact? 
 
Can I use mod_rewrite to setup the URL for passage to mod_jk2?



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



RE: Tomcat and Log4J

2003-12-18 Thread Andy Eastham
Kent,

A gothcha to be aware of: if you put log4j.jar in common/lib, all webapps
will share the same log4j configuration.  This causes a race at server
startup - the last one to initialize log4j wins, ie gets it's own settings.
Everything else then logs into the same file.  This is a symptom of static
variables loaded by the same class loader, so all webapps share the same
instance of the static log4j variables.

I put log4j.jar in each of my webapps' WEB-INF/lib folder to avoid this,
then each webapp can configure log4j to it's own requirements.

Andy

-Original Message-
From: Kent Boogaart [mailto:[EMAIL PROTECTED] 
Sent: 18 December 2003 04:45
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat and Log4J

 Howdy, Your problem is not log4j, it's commons-logging, which is nearly
always the culprit. The issue arises if log4j is in a classloader below
commons-logging, so
 commons-logging doesn't know log4j is there. You're configuring log4j OK,
and if you used a log4j Logger rather than a commons-logging Log, you'd see
expected 
 behavior. But you're using a commons-logging Log, which uses the
commons-logging configuration, which is tied to your server and outputs to
the console. Yoav
 Shapira Millennium ChemInformatics 

Shapira,

Thanks for the advice. I tried using Log4J directly by one of my classes
and, like you said, it worked. However, I wanted to stick with commons
logging since this is (supposedly) the most flexible logging solution.
Therefore, I tried sticking log4j.jar into ${TOMCAT_HOME}/common/lib and
log4j.xml into ${TOMCAT_HOME}/common/classes. This worked for Tomcat classes
but not my own (my log output was still going to stdout). This had me
stumped.

After further stuffing around, one of my work collegues mentioned he'd
gotten around this problem by including commons-logging.jar and
commons-logging-api.jar in his web app. I tried this and it worked. I then
removed commons-logging-api.jar from my web app and it still worked.

In a way this all kind of makes sense - my web app has its own commons
logging package which finds the log4j package and the configuration.
However, I am surprised that this was all necessary. I am also surprised
that it is (I think) undocumented.

Anyways, thanks for your help.

Regards,
Kent

-
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 and a DLL

2003-11-21 Thread Andy Eastham
David,

The line

Illegal Class name jawin folder/develop/jawin/DispatchPtr)

is very suspicious - I'm pretty sure that the space in the path to your
class will cause problems.

Try renaming jawin folder to just jawin and rebuild the jar.

Andy

 -Original Message-
 From: David Sierra Fernández [mailto:[EMAIL PROTECTED]
 Sent: 21 November 2003 09:16
 To: [EMAIL PROTECTED]
 Subject: Tomcat and a DLL


 Hi all,

 I have developed a small app with jawin (a java2COM bridge). I have used
 eclipse as a development tool and I referenced the jawin libraries and all
 works ok.

 the problem is when i deploy the app to Tomcat 4 and try to use a jsp to
 invoke my classes, I get an error that I can't solve.  I think is
 a problem
 of ubication of JAWIN libraries because when I try to get other class that
 does not use JAWIN, all works perfectly. I simplified the JSP in order to
 detect the error and I let it to invoke a simple constructor but goes on
 crashing!

 I tried to put jawin.dll and jawin.jar in the same directory that
 the class,
 in the app lib directory, in the common/lib directory of tomcat, in
 system32, in lib of the JRE, in bin of the JRE. it's useless, I don't
 know how to solve the error.


 The JSP is just as this.



 **
 **
 *
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 %@ page import=es.tid.coche.correo.GestorCorreo %

  %
   GestorCorreo gestor = new GestorCorreo();
 %


 html
 head
 /head
 body

 h1MAIL APPLICATION/h1

 /body
 /html
 **
 **
 *

 As you can see I only invoke the constructor but it crashes.
 I have emptied the constructor method and works pretty fine (doing
 nothing...obviously)
 but when i make a call to an object of the library it crashes.
 This does not happen when i use eclipse...

 import com.develop.jawin.*;
 import com.develop.jawin.win32.*;
 import java.util.Vector;
 import es.tid.coche.beans.CorreoBean;


 the error I get in Internet Explorer is this:

 org.apache.jasper.JasperException: com/develop/jawin/DispatchPtr (Illegal
 Class name jawin folder/develop/jawin/DispatchPtr)
   at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:2
 48)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplication
 FilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterCh
 ain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.ja
 va:260)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardConte
 xtValve.ja
 va:191)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 DispatchPtr is a java class of the library that I use...
 any ideas?


 David Sierra Fernández
 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: Running a Service

2003-11-19 Thread Andy Eastham
Karl,

An easy way of doing this is to call your servlet with wget from a cron job.

Andy

 -Original Message-
 From: Karl Coleman [mailto:[EMAIL PROTECTED]
 Sent: 18 November 2003 20:21
 To: Tomcat Users List
 Subject: RE: Running a Service


 I apologize for being so broad. Let me be more specific. It might
 help some.

 We are running an intranet application running on apache and
 tomcat. It's all Java, using JSP and Servlets, and Struts. One
 function of the application is scanning in faxes. After being
 scanned, these documents are stored as TIFF files on the server
 temporarily. Right now, importing these images into the database
 is a manual process. There is a JSP page that has a Start Import
 button that invokes a servlet that imports these images into the
 database. My task is to make this an automated process so that
 any images that have been scanned in will get scanned in at
 night, say 3am. In other words, this code that is in this servlet
 that imports images needs to be called automatically every night at 3am.

 I hope that helps. Thanks.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 18, 2003 3:07 PM
 To: Tomcat Users List
 Subject: RE: Running a Service



 Howdy,
 You mean like a cron job? ;)  Or the Windows Scheduler on windows, or a
 3rd party tool like 12Ghosts Timer?

 Or do you mean already have a tomcat running around the clock but you'd
 like something to happen at 3am?  A tool like Quartz (quarts.sf.net)
 would help...

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Karl Coleman [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 18, 2003 3:02 PM
 To: [EMAIL PROTECTED]
 Subject: Running a Service
 
 I need to run a process at a specific time every day, say 3:00am. How
 do
 you configure Tomcat to have a service running in the background.



 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]



RE: JK2 Build Error

2003-11-19 Thread Andy Eastham
Bill,

The problem is that the apache runtime library cannot be located.

I just found this resource that might help you out:
http://cymulacrum.net/tomcat/jk2_compile.html

Best regards,

Andy

 -Original Message-
 From: Bill R [mailto:[EMAIL PROTECTED]
 Sent: 19 November 2003 02:03
 To: [EMAIL PROTECTED]
 Subject: JK2 Build Error
 
 
 I am sure you all have heard this before, and can give me some direction
 on how to solve this problem. 
 
 When I go to 'make' the jk2 module, I get the following build error:
 
 /usr/bin/ld: cannot find -lapr-0
 collect2: ld returned 1 exit status
 
 I am running Redhat 9
 jakarta-tomcat-5.0.14
 apache 2.0.40
 
 If you need more info, please let me know.  I am still a bit new at
 compiling my own shared objects for my own purposes (but I have done
 it), so keep that in mind... I am resourceful, but I need a leg up
 here.  :-)  Any help would be appreciated.
 
 Thanks,
 
 BillR
 
 JK2 Build ErrorJK2 Build Error
 -- 
 Bill R [EMAIL PROTECTED]
 


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



RE: https -- http session problem

2003-11-17 Thread Andy Eastham
Andrew,

Couldn't agree more - I've just been round this circle myself.

I don't care if someone gets a session hijacked in my application, but I
don't want passwords transferred over plain text, because people tend to use
the same passwords in multiple applications. This application may not need
to be completely bulletproof, but you can bet your bottom dollar that some
users are using the same paswords as for stuff that does need to be
bulletproof.

Don't anyone say well they shouldn't, because they do! :-)

Andy

-Original Message-
From: Andrew Mottaz [mailto:[EMAIL PROTECTED]
Sent: 17 November 2003 05:32
To: Tomcat Users List
Subject: Re: https -- http session problem




 http://nagoya.apache.org/bugzilla.  However, there aren't very many
 developers who like the idea of allowing you to hang yourself :).




Thanks much for the tip -- I have to disagree about this not being a
necessary change.  There are plenty of apps where people browse without
  a secure connection, but have to log in to perform some functions.
Users like to bookmark pages -- why should I force them to bookmark
only non-secure pages? Giving a developer control over how session
cookies function is better than forcing a hack where you have to always
redirect to a non-secure page to establish the session.  If you are
writing an application where the session data is so sensitive that you
have to protect against session hijacking, you should know about the
difference between secure and non-secure cookies.  I've got no problem
if the default behavior uses secure cookies when ever possible, but
change the Session uses cookie parameter to have a flag that allows
session cookies to always be non-secure.

Just my two-cent rant :)

Andrew


-
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: Problem with IIS tomcat 4.1 jk2 connector

2003-11-12 Thread Andy Eastham
Stéphane,

Your English is perfect - no need to apologise.

I've looked at my config (which is for 4.0.18 with jk2) and the only obvious
difference is that I don't have a leading / in my context path,

So try:
   Context path=java docBase= debug=0 privileged=true
reloadable=true/
rather than:
   Context path=/java docBase= debug=0 privileged=true
reloadable=true/

Hope this is the solution,

Best regards,

Andy
 -Original Message-
 From: Stéphane Brogi [mailto:[EMAIL PROTECTED]
 Sent: 12 November 2003 09:35
 To: [EMAIL PROTECTED]
 Subject: Problem with IIS tomcat 4.1 jk2 connector


 Hi

 First sorry for my english.

 We have a web server with tomcat 4.1.12 running with JK2 connector
 (isapi2_redirector.dll).
 The configuration works fine except for one link redirection
 calling a jsp.
 This problem appears only when using the jk2 connector because if
 we use the
 port 8080 with the tomcat standalone web server we have not this problem.


 The page is not reachable when we use the jk2 connector here is
 the log from
 from the connector.

 --
 --
 --
 2003-11-10 12:42:13 StandardContext[/java]: Mapping
 contextPath='/java' with
 requestURI='/java/jsp/oveExport.jsp' and relativeURI='/jsp/oveExport.jsp'
 2003-11-10 12:42:13 StandardContext[/java]:  Mapped to servlet 'jsp' with
 servlet path '/jsp/oveExport.jsp' and path info 'null' and update=true

 Why we have the path info 'null'


 Here is the host we are using in server.xml

 Host name=www.adesa-cfa-sacef.asso.fr debug=0 appBase=f:\Site
 Internet\adesa\java\web unpackWARs=false
   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=adesa suffix=.log timestamp=true /
   Context path=/java docBase= debug=0 privileged=true
 reloadable=true/
 /Host

 --
 --
 --
 The workers2.properties

 [logger.file:0]
 level=info
 file=C:\J2EE\jakarta-tomcat-4.1.12\logs\iis_jk2.log

 #define the shared memory file
 [shm]
 file=C:\J2EE\jakarta-tomcat-4.1.12\logs\jk2.shm

 # Define the communication channel
 [channel.socket:localhost:8009]
 tomcatId=localhost:8009

 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 [uri:/java/*]
 worker=ajp13:localhost:8009

 --
 --
 ---
 The only line in jk2.properties is:

 shm.file=C:\J2EE\jakarta-tomcat-4.1.12\logs\jk2.shm

 --
 --
 ---
 The jsp file is in the directory  f:\Site
 Internet\adesa\java\web\jsp so the
 root for our app is web.

 And as i say before, the problem does not appear when we use directly the
 tomcat web server org.apache.coyote.tomcat4.CoyoteConnector on a
 standalone
 port (here is 8080).

 Thank you.
 Regards.


 Object'ive - Stéphane Brogi

 Tel 01-40-09-72-83
 Fax 01 40 09 71 23


 -
 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: Obtaining JK2 binaries for Linux

2003-11-05 Thread Andy Eastham
Patrick,

I found this, but I did manage to compile them from source.

Unfortunately my notes don't seem to be that good, but here they are:
build mod_jk2:

download connector src:
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

gunzip and untar
cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-java-home=/usr/j
ava/j2sdk1.4.2
make

Built libraries are:
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/mod_jk2.
so
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/jkjni.so

Copy these libraries into /usr/local/apache2/modules
cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so
/usr/local/apache2/modules/
cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/jkjni.so
/usr/local/apache2/modules/

Perhaps the options in configure above may be helpful?

Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 05 November 2003 12:11
 To: Tomcat Users List
 Subject: Obtaining JK2 binaries for Linux


 Hi,
 I try to set up JK2 for Apache/2.0.40 - Jakarta-Tomcat-4.1.29 on
 RedHat Linux 9.0.

 I cannot find the binary distribution for the connector, or
 cannot access it !
 The only binary distributions availables are for Solaris and Windows :(

 I am based in Switzerland and wonder if the smart mirrors
 redirection process
 head me to an incomplete mirror ? I tried directly accessing this
 URL found on
 some doc (outside Apache.org):

 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/rele
ase/v1.2.2/bin/linux/i386/

But keep on being redirected to the official Apache binary download page.

I also tried building the connector from source
(jakarta-tomcat-connectors-jk2-2.0.2-src) but can't manage to have it done.

Any link, advice appreciated

Patrick



-
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: MAC OSX and Tomcat -4.0.1

2003-10-16 Thread Andy Eastham
James,

At first glance, it looks like class javax/servlet/ServletResponse class
can't be found.

This resides in servlet.jar, which is in common/lib under my tomcat home
directory on my installation.

Andy

 -Original Message-
 From: James Snelling [mailto:[EMAIL PROTECTED]
 Sent: 16 October 2003 00:48
 To: [EMAIL PROTECTED]
 Subject: MAC OSX and Tomcat -4.0.1


 I am having big problems getting tomcat to start.
 I had been using 3.2.4 before, but this has really got me stumped!
 Any help is good! - Thanks in advance!

 Here are some details:

 Using CLASSPATH:
 /Users/system/Applications/java/jakarta/jakarta-tomcat-4.0.1/bin/b
 ootstrap.jar
 Using CATALINA_BASE:
 /Users/system/Applications/java/jakarta/jakarta-tomcat-4.0.1
 Using CATALINA_HOME:
 /Users/system/Applications/java/jakarta/jakarta-tomcat-4.0.1
 Using JAVA_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home

 here is catalina_log

 Exception during startup processing
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
 pl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
 cessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletResponse
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
 at
 org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
 at
 org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
 at
 org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
 at
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter
 .java:333)
 at
 org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
 at
 org.apache.xerces.validators.common.XMLValidator.callStartElement(
 XMLValidator.java:1214)
 at
 org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocu
 mentScanner.java:1806)
 at
 org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.d
 ispatch(XMLDocumentScanner.java:1182)
 at
 org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocume
 ntScanner.java:381)
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:253)
 at
 org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)

 James Snelling

 [EMAIL PROTECTED]

 --
 -

 The views expressed here are not those of the Students'
 Association nor can they be assumed to be those of the writer. No
 liability is accepted for the accuracy or the veracity of the
 contents. You are held to accept this and any use to which you
 put any contents of this communication are entirely your responsibility.

 DISCLAIMER: This e-mail is intended solely for the
 above-mentioned recipient and it may contain confidential or
 privileged information. If you have received it in error, please
 notify us immediately and delete the e-mail. You must not copy,
 distribute, disclose or take any action in reliance on it. This
 e-mail message and any attached files have been scanned for the
 presence of computer viruses, however, you are advised that you
 open any attachments at your own risk.

 Nothing in this email shall be construed as constituting an order
 for goods or services

 www.upsa.org.uk



 --
 --



 

RE: What is a good dev-enviroment for servlet/tomcat?

2003-10-09 Thread Andy Eastham
Have you never run into a problem when multiple developers are working on
the same server, and someone crashes the server, overwrites someone else's
code, breaks something that someone else was relying on, or restarts the
server when someone was in the middle of testing a long running batch job?

I certainly have!

It's easy to ensure people in a small team have the same version.  Put up a
poster with Tomcat 4.1.18 or something written on it, or if they are
distributed around the world, email them weekly with what the approved
development environment is.  If they can't be trusted, replace them with
people who can ;-).

By all means have a single test server shared by everyone, but make sure
people only upload code that has at least been locally module tested.  That
way everyone won't tread on each others toes all the time, and if the test
server goes wrong, others can continue working in their local environments.

Andy

 -Original Message-
 From: epyonne [mailto:[EMAIL PROTECTED]
 Sent: 08 October 2003 20:45
 To: Tomcat Users List
 Subject: Re: What is a good dev-enviroment for servlet/tomcat?


 Just a precaution.  We had run into problem before when different
 developers
 have different version of Tomcat with different configuration locally.


 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, October 08, 2003 01:55 PM
 Subject: RE: What is a good dev-enviroment for servlet/tomcat?



 Howdy,

 IMHO, instead of one instance per developer, I think you should have
 one
 development server with one instance of Tomcat shared by the 3
 developers.

 Why oh why do you think that??

 Yoav Shapira



 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]



RE: HTML quoting

2003-10-02 Thread Andy Eastham
Greg,

Standard one is java.net.URLEncoder.encode() and
java.net.URLEncoder.decode()

Andy

 -Original Message-
 From: David Rees [mailto:[EMAIL PROTECTED]
 Sent: 02 October 2003 22:25
 To: Tomcat Users List
 Subject: Re: HTML quoting


 On Thu, October 2, 2003 at 2:18 pm, Greg Ward sent the following
  What's the standard way of quoting text for inclusion in a web page in
  Java?  Ie. I need a method to convert the string
 
Jeb said, Hell  damnation! Is 5  4?
 
  to
 
Jeb said, Hell  damnation! Is 5  4?
 
  (I think: I've never been entirely sure what the right way to handle
  quotes is.)  That is, I want the standard Java equivalent of Python's
  cgi.escape(), or Perl's CGI::escapeHTML().

 I am not aware of a standard utility for doing so, I have written my own
 utility class which escapes data for encapsulation in XML/HTML.  I am sure
 that one exists out there somewhere, though.

 -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: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Andy Eastham
Chris,

Webapp is unsupported because JK is better and noone in the open source
community wants to support it.  Are you volunteering ;-)

Andy

 -Original Message-
 From: Walker Chris [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2003 11:58
 To: 'Tomcat Users List'
 Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux


 Aaargh!  I worked to 3am for several days to get webapp set up.
 I shouldn't
 believe what I read in books.

 What's the difference between jk and jk2?  And why is webapp unsupported?

 Chris

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2003 11:46
 To: Tomcat Users List
 Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux


 Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

 jk, jk2 allow for either side to go down and all is still ok when
 it comes
 back up

 -Tim

 Walker Chris wrote:

  Hi,
 
  I'm having problems coordinating the startup scripts for Apache, Tomcat
  (connected via mod_webapp) and MySQL.  The situation seems to be this:
 
  - mod_webapp requires Tomcat to be already running when httpd starts
 
  - the Tomcat application contains a connection pool that
 requires MySQL to
  be running when Tomcat starts (this is a crap architecture, but I havn't
  time to change it)
 
  I can execute the startup scripts manually in the sequence
  MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
 at
  system boot it doesn't work.  The httpd log contains a web application
 not
  found message, and pages from the application are not available.
 
  I've renamed the startup scripts so that the sequence is correct, but it
  still doesn't work.  My guess is that most of the Tomcat
 startup forks, so
  that the httpd startup is invoked before it has completed.
 
  I can think of two very klugey workarounds:
 
  - call httpd restart at the end of the Tomcat startup - what
 will this do
 if
  the real httpd script is still executing?
 
  - make the httpd script sleep for a while before it does anything - but
  there's no way to guarantee it will sleep long enough
 
  Alternatively I could add code to the httpd script to see if Tomcat has
  completed its startup.  But I don't know for sure how I would tell, and
 I'd
  rather avoid this sort of hack if there's a proper way to do it.
 
  Chris Walker
 


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



Mod jk2 binaries

2003-09-08 Thread Andy Eastham
Hi,

Please could anyone tell me why there are no linux binaries for mod jk2
version 2.0.2 under
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
2/

I've got to move something from Solaris to Linux and would be interested to
hear if there's a good reason for this before I embark on a wild goose
chase:-)

Was 2.0.2 a bug fix release that didn't effect linux sop people are using
2.0.1?

Or does 2.0.2 not work on Linux for some reason?  If so, does 2.0.1 work OK?

I've got 2.0.2 working fine on Solaris with the binary I downloaded from
under the above URL.

TIA,

Andy



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



RE: File upload Bug?

2003-09-03 Thread Andy Eastham
Tom,

I found that the O'Reilly classes were totally unreliable on Solaris with
binary uploads and mod_webapp.

However, I They work fine on windows and Linux, and luckily I've not needed
them on a Solaris deployment.

I think decided it was actually caused by a bug in Solaris mod_webapp - are
you using this?

Andy

 -Original Message-
 From: Tom Lyle [mailto:[EMAIL PROTECTED]
 Sent: 03 September 2003 15:53
 To: Tomcat Users List
 Subject: File upload Bug?


 Hi All,

 I'm using the o'reilly mutipart request classes to upload files using a
 servlet and its happily working using Tomcat 4.1.18. However,
 i've upgraded
 to the tomcat 4.1.27 and a certain file (just a jpg) causes the upload to
 fail with an java.io.IOException: unexpected end of part. Now i can upload
 this file to the webapp running on Tomcat 4.1.18 but not to the
 same webapp
 running on 4.1.27. What gives?

 Running on Windows 2000
 with sun jdk1.4.1

 Tom


 -
 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: Using sendRedirect puts me into an infinite loop...

2003-07-16 Thread Andy Eastham
Mike,

The documentation is always your friend :-)

The docs say that relative urls are interpreted relative to the CURRENT
REQUEST URI, so the behaviour is as advertised:

*

sendRedirect
public void sendRedirect(java.lang.String location)
  throws java.io.IOExceptionSends a temporary redirect
response to the client using the specified redirect location URL. This
method can accept relative URLs; the servlet container must convert the
relative URL to an absolute URL before sending the response to the client.
If the location is relative without a leading '/' the container interprets
it as relative to the current request URI. If the location is relative with
a leading '/' the container interprets it as relative to the servlet
container root.
If the response has already been committed, this method throws an
IllegalStateException. After using this method, the response should be
considered to be committed and should not be written to.

Parameters:
location - the redirect location URL
Throws:
java.io.IOException - If an input or output exception occurs
IllegalStateException - If the response was committed



You need to hack it with starting the url off with /SHOW or get the
application name from the ServletContext, or read the start of the current
URI, or get it from a config file or somewhere.

All the best,

Andy

 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: 15 July 2003 23:26
 To: [EMAIL PROTECTED]
 Subject: Using sendRedirect puts me into an infinite loop...




 Sorry for posting this here, but I either have a pretty big
 misunderstanding of something (most likely) or I've discovered a bug

 I have Apache Web Server set up thusly:

 ~~~
 VirtualHost xxx.xxx.xxx.xxx
   DocumentRoot /home/webhome/myapp/
   ServerName www.myApp.com
   ErrorLog /var/log/myapp/error_log
   CustomLog /var/log/myapp/access_log combined
 /VirtualHost

 ~~~

 Then in Tomcat server.xml:
 ~~~
 Context path=/SHOW docBase=/home/webhome/myapp/
 defaultSessionTimeout=60
 ~~~

 And finally in the web.xml for the application in question:
 ~~~
 servlet
 servlet-nameTrans/servlet-name
 servlet-classcom.acme.Translator/servlet-class
 load-on-startup0/load-on-startup
 /servlet
 .
 .
 .
 servlet-mapping
   servlet-nameTrans/servlet-name
   url-pattern//url-pattern
 /servlet-mapping
 ~~~
 So I think you can see with this setup, I have something like this:

 http://www.myapp.com/SHOW/1/Mike.Curwen
 http://www.myapp.com/SHOW/2/Other.Person
 http://www.myapp.com/SHOW/admin
 http://www.myapp.com/SHOW/reports

 The /admin and /reports requests will map to other 'known' servlets in
 web.xml  (and these work properly).

 Anything 'not' recognized will be picked up by my Translating servlet.
 (the default servlet) It expects certain formats.. meaning
 #/FirstName.LastName

 Never mind the robustness of that.. here is the code within the
 translator (the code of interest)

 ~~~
 public void handleRequest( HttpServletRequest request,
 HttpServletResponse response) throws Exception {

   HttpSession session = request.getSession(true);

   logger.debug(URI:  + request.getRequestURI());
   logger.debug(URL:  + request.getRequestURL());
   logger.debug(PATH:  + request.getPathInfo());


   String what_was_requested = request.getRequestURI();

   String newURL=(foo?);

   // large block of code snipped ... it translates the
   // 'encoded' request into a normalized querystring
   // for the 'foo' servlet.

   newURL = response.encodeRedirectURL(newURL);
   logger.debug(SHOW::  + request.getRequestURI() +  translates
 to:  + newURL);
   // redirect (our tracking filter won't pick up internally
 forwarded requests until servlet2.4)
   response.sendRedirect(newURL);
 ~~~



 So I'm translating from a #/FirstName.LastName format into a queryString
 that all other parts of my application can use.

 Here is what I get when I make a request for
 http://www.myapp.com/SHOW/1/Mike.Curwen
 ~~~
 DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/Mike.Curwen
 (44348ms)
 DEBUG com.acme.Translator.handleRequest() - URL:
 http://www.myapp.com/SHOW/1/Mike.Curwen (44349ms)
 DEBUG com.acme.Translator.handleRequest() - PATH: null (44350ms)
 DEBUG com.acme.Translator.handleRequest() - pid 1 - 1 CACHED (44357ms)
 DEBUG com.acme.Translator.handleRequest() - SHOW:: /SHOW/1/Mike.Curwen
 translates to: foo?cid=1pid=1uid=1src=browsepgid=1 (44363ms)
 DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/foo (44367ms)
 DEBUG 

RE: [OFFTOPIC??] RE: dbcp connection and database restart

2003-07-09 Thread Andy Eastham
Angus,

You can call Conection.isClosed(), but the documentation suggests that this
is not a reliable method of telling that it is _definitely_ closed.
However, if it does return true, you know that you should reconnect before
attempting a call with the connection.

Andy

 -Original Message-
 From: Angus Mezick [mailto:[EMAIL PROTECTED]
 Sent: 09 July 2003 15:53
 To: Tomcat Users List
 Subject: [OFFTOPIC??] RE: dbcp connection and database restart


 Is there a better way of doing this?  Even if I 'select 1 from TABLE' I
 don't like the fact that there is an extra DB communication for every
 connection I get from the pool.  I don't know if there are alternatives
 to this in DBCP but are there any other ways to ask if a connection in a
 pool is still valid besides just running a query and seeing if it fails?
 (in general, NOT in dbcp)
 --Angus

  -Original Message-
  From: Raible, Matt [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 09, 2003 8:49 AM
  To: 'Tomcat Users List'
  Subject: RE: dbcp connection and database restart
 
 
  Try adding a validation query, for example:
 
  parameter
  namevalidationQuery/name
  valueSELECT * FROM USER_TABLE/value
  /parameter
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 09, 2003 6:46 AM
  To: [EMAIL PROTECTED]
  Subject: dbcp connection and database restart
 
 
 
  I've configured my jdbc datasource connection pool(using dbcp)  in
  Tomcat
  4.1.18
  server.xml file.
 
  here is an extract of it.
 
  ResourceParams name=jdbc/intranetMail
   parameternameusername/namevalueXXX/value/parameter
   parameternamepassword/namevalueXXX/value/parameter
  parameternamedriverClassName/name
 
  valuecom.sybase.jdbc2.jdbc.SybDriver/value/parameter
  parameternameurl/name
 
  valuejdbc:sybase:Tds:s198000SGD1:5000/intranet_mail/value
  /parameter
  
 
   /ResourceParams
 
  Everything works fine. But
  when our database server is restarted, I have to restart Tomcat too
  in order to aquire connections from my defined pool.
 
  I wonder if there is a manner to avoid restarting Tomcat when
  the database server is restarted.
 
  I have added the parameters below to my pool config.
 
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value60/value
  /parameter
 
   I recognize ,I've added that quite blindly.
   Can someone confirm me if this is a cure to my problem ?
 
   any suggestion is greatly appreciated.
 
 
   Meissa
 
  L'integrite de ce message n'etant pas assuree sur internet, Natexis
  Banques Populaires ne peut etre tenu responsable de
  son contenu. Toute utilisation ou diffusion non autorisee est
  interdite. Si vous n'etes pas destinataire de ce message, merci de le
  detruire et d'avertir l'expediteur.
 
  The integrity of this message cannot be guaranteed
  on the Internet. Natexis Banques Populaires can not therefore be
  considered responsible for the contents.Any unauthorized use or
  dissemination is prohibited.
  If you are not the intended recipient of this message, then please
  delete it and
  notify the sender.
 
  -
  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: A question about filters

2003-07-08 Thread Andy Eastham
Abid,

You are right, but if you set up the same filter in the web.xml for every
webapp, you'll get the same effect.

Andy

 -Original Message-
 From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
 Sent: 08 July 2003 10:30
 To: Tomcat Users List
 Subject: A question about filters


 Hi

 After a lot of experimenting and hassle i've come to the
 conclusion that i have misundeerstood how filters work.

 I thought i could make a filter for the entire website, and all
 requests to that website would go through a specified filter.
 This is not possible, as far as i know?? You can only make
 filters connected to some webapp, and all requests to that webapp
 will go through the filter.

 What i mean is, if you have a site called :
   http://www.somesite.com/

 You can't set up a filter for all request with this url-pattern.

 You can set up a filter to :
   http://www.somesite.com/mywebapp/

 Or any other context that you specify after the website address.

 Anyone here know a way for me to set up a filter for all requests
 to a webiste ?

 Regards,
 Abid

 -
 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: A question about filters

2003-07-08 Thread Andy Eastham
Abid,

The server web.xml is processed before the application web.xml, so it should
work.  You'll need to ensure the filter class is available to all webapps,
so /common/lib (for a jar) or /common/classes(for a .class) is where I'd
recommend.

You'll need to use a filter map such as *.

Why not give it a try and let us know what happens.

All the best,

Andy

 -Original Message-
 From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
 Sent: 08 July 2003 11:10
 To: Tomcat Users List
 Subject: RE: A question about filters



 Yes, i suppose that will work, but there is also a web.xml file
 for the entire installation that is in the same place as the
 server.xml

 Is it possible to add a filter in these files ?

 Abid

 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: 8. juli 2003 12:03
 To: Tomcat Users List
 Subject: RE: A question about filters


 Abid,

 You are right, but if you set up the same filter in the web.xml for every
 webapp, you'll get the same effect.

 Andy

  -Original Message-
  From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
  Sent: 08 July 2003 10:30
  To: Tomcat Users List
  Subject: A question about filters
 
 
  Hi
 
  After a lot of experimenting and hassle i've come to the
  conclusion that i have misundeerstood how filters work.
 
  I thought i could make a filter for the entire website, and all
  requests to that website would go through a specified filter.
  This is not possible, as far as i know?? You can only make
  filters connected to some webapp, and all requests to that webapp
  will go through the filter.
 
  What i mean is, if you have a site called :
  http://www.somesite.com/
 
  You can't set up a filter for all request with this url-pattern.
 
  You can set up a filter to :
  http://www.somesite.com/mywebapp/
 
  Or any other context that you specify after the website address.
 
  Anyone here know a way for me to set up a filter for all requests
  to a webiste ?
 
  Regards,
  Abid
 
  -
  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: A question about filters

2003-07-08 Thread Andy Eastham
Abid,

Yes.

Andy

PS There is an excellent resource on web.xml as a sample chapter at
www.moreservlets.com

 -Original Message-
 From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
 Sent: 08 July 2003 12:11
 To: Tomcat Users List
 Subject: RE: A question about filters


 Yes, i think i will try that  when you say filter map such
 as * you mean url-pattern as *  right ?

 Abid

 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: 8. juli 2003 13:05
 To: Tomcat Users List
 Subject: RE: A question about filters


 Abid,

 The server web.xml is processed before the application web.xml,
 so it should
 work.  You'll need to ensure the filter class is available to all webapps,
 so /common/lib (for a jar) or /common/classes(for a .class) is where I'd
 recommend.

 You'll need to use a filter map such as *.

 Why not give it a try and let us know what happens.

 All the best,

 Andy

  -Original Message-
  From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
  Sent: 08 July 2003 11:10
  To: Tomcat Users List
  Subject: RE: A question about filters
 
 
 
  Yes, i suppose that will work, but there is also a web.xml file
  for the entire installation that is in the same place as the
  server.xml
 
  Is it possible to add a filter in these files ?
 
  Abid
 
  -Original Message-
  From: Andy Eastham [mailto:[EMAIL PROTECTED]
  Sent: 8. juli 2003 12:03
  To: Tomcat Users List
  Subject: RE: A question about filters
 
 
  Abid,
 
  You are right, but if you set up the same filter in the web.xml
 for every
  webapp, you'll get the same effect.
 
  Andy
 
   -Original Message-
   From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
   Sent: 08 July 2003 10:30
   To: Tomcat Users List
   Subject: A question about filters
  
  
   Hi
  
   After a lot of experimenting and hassle i've come to the
   conclusion that i have misundeerstood how filters work.
  
   I thought i could make a filter for the entire website, and all
   requests to that website would go through a specified filter.
   This is not possible, as far as i know?? You can only make
   filters connected to some webapp, and all requests to that webapp
   will go through the filter.
  
   What i mean is, if you have a site called :
 http://www.somesite.com/
  
   You can't set up a filter for all request with this url-pattern.
  
   You can set up a filter to :
 http://www.somesite.com/mywebapp/
  
   Or any other context that you specify after the website address.
  
   Anyone here know a way for me to set up a filter for all requests
   to a webiste ?
  
   Regards,
   Abid
  
   -
   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]



RE: Tomcat an jdk

2003-07-08 Thread Andy Eastham
GVS

The release notes of 4.1.18 refer to specific issues with 1.2.x - 1.3.x on
Linux, so from that I infer that generally it works with JDK = 1.2.0

It's built with JDK 1.4 though.

Andy

 -Original Message-
 From: GVS Srinivas [mailto:[EMAIL PROTECTED]
 Sent: 08 July 2003 13:59
 To: '[EMAIL PROTECTED]'
 Subject: Tomcat an jdk


 Does tomcat 4.1.18  specific about jdk version 1.4.1,or does it work with
 even earlier version of the JDK. what are the compatible versions??
 Would you please let me know
 Thanks
 GVS

 -
 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, load balancing, singletons

2003-07-08 Thread Andy Eastham
Vijay,

Someone else posted something today about an open source EJB container that
runs with Tomcat.

It might have been called OpenEJB?

Andy

 -Original Message-
 From: Vijay Kandy [mailto:[EMAIL PROTECTED]
 Sent: 08 July 2003 15:28
 To: 'Tomcat Users List'
 Subject: RE: Tomcat, load balancing, singletons


 Thank you but like I said, I need to run on tomcat. How do you do that?

 Vijay

  -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 08, 2003 9:25 AM
 To:   Tomcat Users List
 Subject:  Re: Tomcat, load balancing, singletons

 Yeah, they are called EJB's

 -Tim

 Vijay Kandy wrote:
  Hello all,
 
  I have a few questions about tomcat load balancing. If I use
 two different
  machines for two instances, is there a way not to replicate singletons
 over
  the two machines? For example, if a webapp uses connection
 pool, is there
 a
  way to host it on a third server, so that the two instances
 talk to it to
  call static code? Is there a framework or design already done? Please
 help.
 
  Sincerely,
  Vijay


 -
 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: getting a reply like this.

2003-06-19 Thread Andy Eastham
Jon,

I agree with what you say, except that the list probably thinks the message
send succeeded.  The message isn't bounced back to the list - the spam
warning goes back to the original sender contained in the From header.
The spam warning software is ignoring the Reply-To header.

Therefore the list may be oblivious to the problems, and the person behind
the firewall may think the list is broken because his posts and replies
don't make it through.

Andy

 -Original Message-
 From: Jon Wingfield [mailto:[EMAIL PROTECTED]
 Sent: 19 June 2003 09:52
 To: Tomcat Users List
 Subject: Re: getting a reply like this.


 I may be wrong but...

 This list knows nothing (as such) about [EMAIL PROTECTED]
 Here's what i believe is happening:

 1) You post to the list.
 2) List delivers said post to all subscribers. One subscriber is, say,
 [EMAIL PROTECTED]
 3) The Mail Daemon/Post Master at logicaonline.com rejects the post
 because the From address domain is hotmail.com and sends a rejection
 response to the From address (you). [EMAIL PROTECTED] is oblivious

 The list is probably noting that mails to [EMAIL PROTECTED] fail so
 that account may die automatically after a while.

 As John Turner noted earlier, it's a miscofiguration of the anti-spam
 filter at logicaonline. Blocking [EMAIL PROTECTED] would have no
 effect as no mails are directly sent to it.

 Jon

 anto paul wrote:
  Then why not the Tomcat list admin block the
 [EMAIL PROTECTED] e-mail
  id. ?
  - Original Message -
  From: Andy Eastham [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, June 18, 2003 8:17 PM
  Subject: RE: getting a reply like this.
 
 
 
 Anto,
 
 When you post to this list, the mail gets distributed to various
 subscribers, some of whom are behind companies anti-spam filters that
 
  range
 
 from crap to fuxxing useless.  These antispam filters all seem to be
 
  poorly
 
 written and poorly configured, so that they allow in most spam
 but reject
 most legitimate mail.  When they decide that your message is
 spam (eg you
 wrote something like thread xxx has terminated), they send you a
 
  message,
 
 that they somehow think doesn't constitute spam, back to you to
 inform you
 that you are the lowest form of low-life on the planet, even though you
 
  may
 
 have been actively trying to help one of their employees for free...
 
 In fact, these anti-spam filters send me more unwanted mail than do
 spammers.
 
 Rest assured that the annoying message is coming from individual
 
  recipients
 
 of the list, and not the list itself.  Most subscribers will
 have received
 the message gracefully and not questioned your legitimacy to exist :-)
 
 All the best,
 
 Andy
 
 
 -Original Message-
 From: anto paul [mailto:[EMAIL PROTECTED]
 Sent: 18 June 2003 10:01
 To: tomcat mail list
 Subject: Fw: getting a reply like this.
 
 
 When I post to this mailing list I am getting the following
 reply. Why I am
 getting this. Any one else get this ?
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2003 1:55 PM
 Subject: RE: How to stop execution of infinite loop in Tomcat ?
 
 
 
 Dear [EMAIL PROTECTED],
 
 Your recent message to this server regarding `How to stop execution of
 
 infinite loop in Tomcat ?`
 
 was not delivered.  Your address is listed in one or more suppression
 
 files
 
 on this server or your account is configured to allow local mail
 
  traffic
 
 only.
 
 Please contact the postmaster at this domain if additional
 
 information is
 
 required.
 
 Thank you,
 
 [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]



RE: Precompiling JSPs

2003-06-18 Thread Andy Eastham
Andoni,

I do this in Sun One Studio, where I do all my Java development.

You can compile JSPs just as you can compile java source.

Andy

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]
 Sent: 18 June 2003 10:25
 To: Tomcat Users List
 Subject: Precompiling JSPs
 
 
 Hello,
 
 I have a build.cmd file that I have had and modified for every 
 project I've done for years.  I should probably go learn ANT or 
 some other build technique but for now I want to do this the 
 command line way.  I'm not even sure if ANT will do what I want.
 
 I want to have my .jsp files made into .java files (easy) then 
 compiled into .class files (hard) before starting my Tomcat.  
 That way I can see any syntax errors in my .jsp files.
 
 If I do this at the moment I get a load of errors where one JSP 
 which is included in another uses variables which are only 
 declared in the major one.
 
 Is there a way to compile the .java files the way Tomcat does 
 (which takes account of included .jsp's)?
 
 Does ANT create .class files?
 
 Thanks in advance.
 
 Andoni.


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



RE: getting a reply like this.

2003-06-18 Thread Andy Eastham
Anto,

When you post to this list, the mail gets distributed to various
subscribers, some of whom are behind companies anti-spam filters that range
from crap to fuxxing useless.  These antispam filters all seem to be poorly
written and poorly configured, so that they allow in most spam but reject
most legitimate mail.  When they decide that your message is spam (eg you
wrote something like thread xxx has terminated), they send you a message,
that they somehow think doesn't constitute spam, back to you to inform you
that you are the lowest form of low-life on the planet, even though you may
have been actively trying to help one of their employees for free...

In fact, these anti-spam filters send me more unwanted mail than do
spammers.

Rest assured that the annoying message is coming from individual recipients
of the list, and not the list itself.  Most subscribers will have received
the message gracefully and not questioned your legitimacy to exist :-)

All the best,

Andy

 -Original Message-
 From: anto paul [mailto:[EMAIL PROTECTED]
 Sent: 18 June 2003 10:01
 To: tomcat mail list
 Subject: Fw: getting a reply like this.


 When I post to this mailing list I am getting the following
 reply. Why I am
 getting this. Any one else get this ?
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 18, 2003 1:55 PM
 Subject: RE: How to stop execution of infinite loop in Tomcat ?


  Dear [EMAIL PROTECTED],
 
  Your recent message to this server regarding `How to stop execution of
 infinite loop in Tomcat ?`
  was not delivered.  Your address is listed in one or more suppression
 files
  on this server or your account is configured to allow local mail traffic
 only.
  Please contact the postmaster at this domain if additional
 information is
  required.
 
  Thank you,
 
  [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: Issues with web.xml

2003-06-03 Thread Andy Eastham
Robert,

I'm not sure what the problem is, but you can redirect the output in dos,
just like in unix.  Eg, if you're running startup.bat, type
startup.bat  myfile.log

and inspect the output written to the log file.  This should help you solve
the problem yourself, or at least you'll be able to give us more detail to
help you.

All the best,

Andy

 -Original Message-
 From: Robert Seeger [mailto:[EMAIL PROTECTED]
 Sent: 03 June 2003 11:09
 To: [EMAIL PROTECTED]
 Subject: Issues with web.xml


 I'm having issues with the web.xml file in my webapps/root/web-inf
 directory. What I want to do is be able to specify each individual
 servlet that can be run, by using servlet and servlet-mapping tags.
 Unfortunately, the best I have been able to do is use a generic servlet
 invoker to allow every servlet to be accessed. When I try to set things
 up so that only one servlet can be accessed, there are errors showing up
 in the dos box when I start Tomcat... which proceed to scroll of the
 screen faster than I can look at them. They do not show up in any of the
 logfiles in the logs directory. I was hoping someone could take a look
 at the web.xml file I'm using and tell me if my error is an obvious one,
 and how to fix it. I tried everything I could think of to make it work,
 and checked all the documentation I could find.

 I'm running Tomcat 4.1.24 on Windows 98.

 Thank you in advance,
 Robert Seeger

 -- Working web.xml, that allows all servlets in the directory to
 be accessed --
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

   display-nameTomcat Examples/display-name
   description
 Tomcat Example servlets and JSP pages.
   /description

 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping

 /web-app
 

 -- Non-working web.xml that causes errors --
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

   display-nameTomcat Examples/display-name
   description
 Tomcat Example servlets and JSP pages.
   /description

   servlet
 servlet-nameHelloWorld/servlet-name
 servlet-classHelloWorld/servlet-class
 description
   My test servlet
 /description
   /servlet

   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/HelloWorld/url-pattern
   /servlet-mapping

 /web-app
 


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



Cookies and HTTPS through Apache

2003-03-27 Thread Andy Eastham
Hi,

I've got a site up and running which uses Tomcat via Apache2 and mod_jk2
(only - no direct access to Tomcat).

I manage logins using standard session management via cookies.

Some of the site is accessible by http, other bits are accessible via https.
This is managed by mod_rewrite in Apache.

I've noticed that if I make the login page an http page, the session cookie
is sent to the server in both http and https requests, so the person appears
logged in.

However, if the login page is accessed via https, the session cookie is only
sent to https requests, not http requests, so the user appears not logged in
on the non-secure pages.

I understand that this could usually be desirable behaviour - it keeps a
cookie given out over https secure.

However this is not the behaviour I want.  I want the login page to be https
to protect the password, but I want the session cookie to be passed in http
requests too.  Is there a way to make a cookie passed over https accessible
to http requests?  Is Tomcat doing this or Apache?

Is this clear?

Any suggestions or pointers to further reading would be very much
appreciated.

Best regards,

Andy



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



RE: Unexpected Signal : 11 occurred

2003-03-26 Thread Andy Eastham
Georges,

I read the release notes for J2SE 1.4.1_02 (latest release) and remember
that there was a fix for a signal 11 bug.  I don't know if it will solve
your problem, but it's worth a try.

Andy

 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: 26 March 2003 09:53
 To: Tomcat Users List
 Subject: Unexpected Signal : 11 occurred


 Hi,

 Have some problem with tomcat 4.1.x  who hang frequently I ve this
 Exception in catalina.out

 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : 11 occurred at PC=0x4001EB9E
 Function=__pthread_mutex_trylock+0x26
 Library=/lib/libpthread.so.0

 Current Java thread:
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
 - locked 0x44828fe8 (a java.net.PlainSocketImpl)
 at java.net.ServerSocket.implAccept(ServerSocket.java:439)
 at
 com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(DashoA6275)
 at
 org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSS
 ESocketFactory.java:240)
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEnd
 point.java:356)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
 adPool.java:619)
 at java.lang.Thread.run(Thread.java:536)

 Dynamic libraries:


 
 Another exception has been detected while we were handling last error.
 Dumping information about last error:
 ERROR REPORT FILE = (N/A)
 PC= 0x0x4001eb9e
 SIGNAL= 11
 FUNCTION NAME = __pthread_mutex_trylock
 OFFSET= 0x26
 LIBRARY NAME  = /lib/libpthread.so.0
 Please check ERROR REPORT FILE for further information, if there is any.
 Good bye.

 Please Help

 Georges


 -
 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: Can't connect to X11 window server using '0:0' as the value ofthe display and now java.awt.HeadlessException

2003-03-20 Thread Andy Eastham
Hi,

I would say that Xvfb does _not_ connect to your display adapter - the v
stands for virtual, ie it's not a real frame buffer as in a video card -
it's a virtual one in your systems normal memory.

It's specifically for taking the place of a display adapter when your server
doesn't have one.

We always used to use this on sun E250s without a display adapter, but now
we use headless as it's more reliable.

Andy

 -Original Message-
 From: p niemandt [mailto:[EMAIL PROTECTED]
 Sent: 20 March 2003 21:47
 To: Tomcat Users List
 Subject: Re: Can't connect to X11 window server using '0:0' as the value
 ofthe display and now java.awt.HeadlessException


 Yep: Done correctly, this is probably the more 'correct' solution, but,
 and I'm probably opening myself to a lot of flamebait, but I do suspect
 that using something like Xvfb might give some advantages that using
 headless won't. For example, and I'm just guessing, but I think that
 'headless' is purely a software solution, while Xvfb might be connected
 to your display adaptor, and therefor might be faster or less of a drain
 on your system resources.

 {
 But, like I said, I have no documentation to back up this statement,
 this is purely a guess and based on my personal findings: If anybody
 else knows differently, I would be very interested to know more, as I'm
 doing a lot more graphics orientated servlets, that usually run on
 headless boxes }



 On Thu, 2003-03-20 at 20:36, Micael wrote:
  For me the easiest thing was just to provide the right command
 line options
  (java.awt.headless=true) when I started up Tomcat.
 
  At 02:27 PM 3/20/03 -0500, you wrote:
  At 07:18 PM 3/20/2003 +, you wrote:
  ok: there is another solution to the headless thing: (I wrote a
  graphical servlet that runs on a linux box without X, and had the same
  problems: The headless seemed to work, well, kinda, but not to my
  liking): So I went the xvfb route: This is a virtual frame
 buffer to can
  install on a linux box that emulates an X session, which then kinda
  solves all the graphical problems in one step. You set the xvfb to the
  resolution required and just start and forget about it.
  
  Worth I shot, I'd say, and might safe you hours of frustration [It did
  me ;-) ].
I had tried xvfb and had some difficulties. Any pointers?
 suggestions?
  
  Thanks,
  Glenn
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  LEGAL NOTICE
 
  This electronic mail  transmission and any accompanying
 documents contain
  information belonging to the sender which may be confidential
 and legally
  privileged.  This information is intended only for the use of the
  individual or entity to whom this electronic mail transmission
 was sent as
  indicated above. If you are not the intended recipient, any disclosure,
  copying, distribution, or action taken in reliance on the
 contents of the
  information contained in this transmission is strictly
 prohibited.  If you
  have received this transmission in error, please delete the
 message.  Thank
  you
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 --
 p niemandt [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: Problems configuring Tomcat with Apache using mod_jk2

2003-03-04 Thread Andy Eastham
David,

This looks like jk config to me, not jk2.  If it helps, here are my working
config files for apache 2 and mod_jk2 on solaris.  (The workers.properties
file is called workers2.properties on my system, which is the default name).

My Httpd mapping looks like:
VirtualHost *
ServerName 192.168.0.102
ServerAlias www
ServerAlias localhost
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/apache2/htdocs
ErrorLog logs/home.net-errorlog
CustomLog logs/home.net-access.log common
Location /control/
JkUriSet worker ajp13:localhost:8009
/Location
Location /wwwsadmin/
JkUriSet worker ajp13:localhost:8009
/Location
/VirtualHost

workers2.properties looks like:
[logger.apache2]
level=DEBUG

[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:192.168.0.102/control/*]
worker=ajp13:localhost:8009

[uri:localhost/control/*]
worker=ajp13:localhost:8009

[uri:wwws/control/]
worker=ajp13:localhost:8009

[uri:127.0.0.1/control/*]
worker=ajp13:localhost:8009

[uri:192.168.0.102/wwwsadmin/*]
worker=ajp13:localhost:8009

[uri:localhost/wwwsadmin/*]
worker=ajp13:localhost:8009

[uri:wwws/wwwsadmin/]
worker=ajp13:localhost:8009

[uri:127.0.0.1/wwwsadmin/*]
worker=ajp13:localhost:8009

Here's /usr/local/tomcat/conf/jk2.properties (note only 2 uncommented lines)
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
handler.listchannelSocket,request
#
# Override the default port for the socketChannel
channelSocket.port=8009

# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
#apr.jniModeSo=inprocess

Finally, server.xml:
Server port=8005 shutdown=SHUTDOWN debug=0
  !-- Define an Apache-Connector Service --

  Service name=Tomcat-Apache

   !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

 Engine name=Apache defaultHost=192.168.0.102
debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
   !-- Access log processes all requests for this virtual
host. --
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common resolveHosts=false/

 Host name=192.168.0.102 debug=0
appBase=webapps
   unpackWARs=true autoDeploy=true
 Aliaslocalhost/Alias
 Aliaswwws/Alias
 Alias127.0.0.1/Alias


 Context path=control docBase=
debug=1/
 Context path=wwwsadmin docBase=
debug=1/

 Valve
className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=home_access_log. suffix=.txt
 pattern=common resolveHosts=false/
 /Host


/Engine

  /Service

I've found the key is to follow and check the path for each mapping in
httpd.conf through workers2.properties and then through server.xml.  Make
sure there's a match for each alias, and make sure you get all the IP
addresses right.  You don't get much help from any error messages if you get
this wrong.

Hope this helps - it took me a while to get it all working, but now it works
a treat and is very reliable.

Andy

 -Original Message-
 From: David Godfrey [mailto:[EMAIL PROTECTED]
 Sent: 04 March 2003 17:02
 To: 'Tomcat Users List'
 Subject: RE: Problems configuring Tomcat with Apache using mod_jk2


 It would help if you post the entries you added in httpd.conf for Tomcat.
 Also include your server.xml file for more information.

 I have modified httpd.conf as follows:

 JKWorkersFile /opt/tomcat/conf/jk/workers.properties
 JKLogFile /opt/tomcat/logs/mod)jk.log
 Include /opt/tomcat/conf/auto/mod_jk.conf

 Server.xml is as follows (standard apart from the references 

RE: Problems configuring Tomcat with Apache using mod_jk2

2003-03-04 Thread Andy Eastham
Rick,

That's a leftover from the file on the web I copied my config from - it's
commented out anyway.  I haven't a clue what it does.

All I know is that this set up works!

Andy

 -Original Message-
 From: Rick Bullotta [mailto:[EMAIL PROTECTED]
 Sent: 04 March 2003 18:11
 To: 'Tomcat Users List'
 Subject: RE: Problems configuring Tomcat with Apache using mod_jk2


 The mystery to me is why there is a shm.file entry in
 jk2.properties...when the actual entry seems to need to be in
 workers2.properties.  The documentation is very sparse in this area.

 Rick Bullotta
 CTO
 Lighthammer Software (http://www.lighthammer.com)



 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 04, 2003 12:32 PM
 To: Tomcat Users List
 Subject: RE: Problems configuring Tomcat with Apache using mod_jk2


 David,

 This looks like jk config to me, not jk2.  If it helps, here are my
 working config files for apache 2 and mod_jk2 on solaris.  (The
 workers.properties file is called workers2.properties on my system,
 which is the default name).

 My Httpd mapping looks like:
 VirtualHost *
 ServerName 192.168.0.102
 ServerAlias www
 ServerAlias localhost
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/apache2/htdocs
 ErrorLog logs/home.net-errorlog
 CustomLog logs/home.net-access.log common
 Location /control/
 JkUriSet worker ajp13:localhost:8009
 /Location
 Location /wwwsadmin/
 JkUriSet worker ajp13:localhost:8009
 /Location
 /VirtualHost

 workers2.properties looks like:
 [logger.apache2]
 level=DEBUG

 [shm]
 file=/usr/local/apache2/logs/shm.file
 size=1048576

 # Example socket channel, override port and host.
 [channel.socket:localhost:8009] port=8009 host=127.0.0.1

 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 # Uri mapping
 [uri:192.168.0.102/control/*]
 worker=ajp13:localhost:8009

 [uri:localhost/control/*]
 worker=ajp13:localhost:8009

 [uri:wwws/control/]
 worker=ajp13:localhost:8009

 [uri:127.0.0.1/control/*]
 worker=ajp13:localhost:8009

 [uri:192.168.0.102/wwwsadmin/*]
 worker=ajp13:localhost:8009

 [uri:localhost/wwwsadmin/*]
 worker=ajp13:localhost:8009

 [uri:wwws/wwwsadmin/]
 worker=ajp13:localhost:8009

 [uri:127.0.0.1/wwwsadmin/*]
 worker=ajp13:localhost:8009

 Here's /usr/local/tomcat/conf/jk2.properties (note only 2 uncommented
 lines) ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS
 STOPED ## WHEN YOU EDIT THE FILE.

 ## COMMENTS WILL BE _LOST_

 ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

 # Set the desired handler list handler.listchannelSocket,request # #
 Override the default port for the socketChannel channelSocket.port=8009

 # Default:
 # channelUnix.file=${jkHome}/work/jk2.socket
 # Just to check if the the config  is working
 # shm.file=${jkHome}/work/jk2.shm

 # In order to enable jni use any channelJni directive
 # channelJni.disabled = 0
 # And one of the following directives:

 # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

 # If set to inprocess the mod_jk2 will Register natives itself # This
 will enable the starting of the Tomcat from mod_jk2
 #apr.jniModeSo=inprocess

 Finally, server.xml:
 Server port=8005 shutdown=SHUTDOWN debug=0
   !-- Define an Apache-Connector Service --

   Service name=Tomcat-Apache

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

  Engine name=Apache defaultHost=192.168.0.102
 debug=0

   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
!-- Access log processes all requests for this
 virtual host. --
   Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
 suffix=.txt
  pattern=common resolveHosts=false/

  Host name=192.168.0.102 debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswwws/Alias
  Alias127.0.0.1/Alias


  Context path=control docBase=
 debug=1/
  Context path=wwwsadmin docBase=
 debug=1/

  Valve
 className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=home_access_log.
 suffix=.txt
  pattern=common resolveHosts=false/
  /Host


 /Engine

   /Service

 I've found the key is to follow

RE: include a class

2003-03-03 Thread Andy Eastham
If you can understand perl, surely nothing can be confusing ;-)

Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 03 March 2003 08:36
 To: Tomcat Users List
 Subject: Re: include a class


 Thanx a lot.

 i using the tomcat and for a perl-man, like me, it is very
 confusing. but know
 it works. i took your 2. exp. Thanx

 Kris

 Am 28 Feb 2003 um 10:49 hat Lindomar geschrieben:

  Kris, first, does your webapp started fine?
  If yes, we can have some situations for one class works in jsp
 files using
  tomcat:
  1- webapp
  |_WEB-INF
  |_classes
  |_yourclass - if your class doesn't have a package
  2- webapp
  |_WEB-INF
  |_classes
  |_pack
  |_subpk1
  |_subpk2
  |_yourclass -if your class is in
  package(s), in this case: pack.subpk1.subpk2.yourclass
 
  3- if your class is any jar, this jar file must be in /WEB-INF/lib(your
  class is shared only in especific webapp) or
 %CATALINA_HOME%/common/lib(your
  class is shared in webapp'S' and tomcat) or
  %CATALINA_HOME%/shared/lib(your class is shared in webapp'S').
 
  After this cases, if your class is in package(s), in you jsp
 file you have
  to use the import directive, for example:
  %@ page import=pack.subpk1.subpk2.* % or if import only  a especific
  class %@ page import=pack.subpk1.subpk2.yourclass %
 
  Well, i think that's.
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 08:46
  Subject: include a class
 
 
   E-mail Premium BOL
   Antivírus, anti-spam e até 100 MB de espaço. Assine já!
   http://email.bol.com.br/
   Hi all,
  
   i am new to JSP and have a beginner question. I can't fix to include a
  class. hmm I have
   class wrtitten that do all i need and it works fine on the shell.
   Now i want to handle this class in a jsp script, so that i
 get back the
  string..
  
   that is what i want to do in my jsp:
  
   Class a = new Class;
   out.println(a.Function());
  
  
   But how to include my class, can anyone give me a short
 example, i can't
  get throw and my
   books are not very well.
  
   Thanx a lot.
  
   Kris Wolff
   Application Developer
   dietzk. Interactive OHG
   An der Schindhohl 7
   D-65843 Sulzbach am Taunus
   Fon +49 (0) 6196 4939-95
   Fax +49 (0) 6196 758830
   [EMAIL PROTECTED]
   http://www.dietzk.de
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 Kris Wolff
 Application Developer
 dietzk. Interactive OHG
 An der Schindhohl 7
 D-65843 Sulzbach am Taunus
 Fon +49 (0) 6196 4939-95
 Fax +49 (0) 6196 758830
 [EMAIL PROTECTED]
 http://www.dietzk.de

 -
 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: Tomcat4.1.18 and ClassCastException.

2003-02-11 Thread Andy Eastham
Prasad,

Is there more information under the exception information you have supplied
labelled Root Cause: ?

If so, this is the information we need to help.  Can you post this
additional information to the list if it's there please?

Best regards,

Andy

 -Original Message-
 From: Prasad Parigi [mailto:[EMAIL PROTECTED]]
 Sent: 11 February 2003 17:10
 To: 'Tomcat Users List'
 Subject: Tomcat4.1.18 and ClassCastException.


 Hi,

   I am new to this mailing list and I get the following error while
 using Tomcat. I tried out all options to resolve this. Any help is
 appreciated. If this is not a proper way of communication, please let me
 know.

 I get an error ClassCastException when I try to use this line of code in
 my JSP. This is using a Object database called CacheDatabase.



 testclass = (ClassA)ClassA._open(dbconnection);



 The return type from open is of type ClassA.



 org.apache.jasper.JasperException: Unable to process TestTomcat Page
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:2
 48)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplication
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.ja
 va:260)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardConte
 xtValve.ja
 va:191)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
 e.java:180
 )
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
 cherValve.
 java:170)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:641)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
 e.java:172
 )
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:641)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
 Valve.java
 :174)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr
 ocessConne
 ction(Http11Protocol.java:386)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
 adPool.jav
 a:530)
 at java.lang.Thread.run(Thread.java:484)


 Please help me on this as I have no idea why it
 shouldn't work.
 It works fine on Jrun4 which also implements the JSP/Servlet version.



 Thanks,

 Prasad.





 -
 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: Strange error

2003-02-10 Thread Andy Eastham
Felipe,

Just one additional idea:

Are you executing another command on the same connection?  This destroys the
result set.

Eg, if you are trying to loop over the result set, and are using the same
connection to do an update or delete on this or another table, you will get
this sort of error.

Andy
 -Original Message-
 From: Sean Dockery [mailto:[EMAIL PROTECTED]]
 Sent: 10 February 2003 14:04
 To: Tomcat Users List
 Subject: Re: Strange error


 Either your database connection is timing out or else you are
 trying to use
 a ResultSet obtained from a Statement which, in turn, was obtained from a
 Connection which you have closed yourself.

 Sean Dockery
 [EMAIL PROTECTED]
 Certified Java Web Component Developer
 Certified Delphi Programmer
 SBD Consultants
 http://www.sbdconsultants.com

 - Original Message -
 From: Felipe Schnack [EMAIL PROTECTED]
 To: pgsql-jdbc [EMAIL PROTECTED]; Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Monday, February 10, 2003 04:45
 Subject: Strange error


   Please, somebody can help me? I'm getting this error message and I
 don't know why... I'm using PostgreSQL 7.3 and Tomcat 4.1.18 connection
 pooling mechanism

 Connection is closed.  Operation is not permitted.
 at
 org.postgresql.jdbc1.AbstractJdbc1ResultSet.next(AbstractJdbc1Resu
 ltSet.java
 :63)
 at
 org.apache.commons.dbcp.DelegatingResultSet.next(DelegatingResultSet.java)
 at com.w2.infra.db.DbVector.next(DbVector.java:141)

 --

 Felipe Schnack
 Analista de Sistemas
 [EMAIL PROTECTED]
 Cel.: (51)91287530
 Linux Counter #281893

 Centro Universitário Ritter dos Reis
 http://www.ritterdosreis.br
 [EMAIL PROTECTED]
 Fone/Fax.: (51)32303341


 -
 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: Apache-Tomcat Configuring....

2003-02-10 Thread Andy Eastham
Allen,

Solaris 2.9 has been the latest operating system for about 6 months...

I'd definitely patch it I was you.

Andy

 -Original Message-
 From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
 Sent: 10 February 2003 15:48
 To: Tomcat Users List
 Subject: RE: Apache-Tomcat Configuring
 
 
 I'll check for the patches but this is a new machine with Solaris 2.8. I
 would think it would have a the current patches...but you never know.
 
 Allen
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 11:18 PM
 To: 'Tomcat Users List'
 Subject: RE: Apache-Tomcat Configuring
 
 
 
 What errors?  You got the same errors?  Do you have the recommended
 patch
 cluster installed?  Your error messages look like system-level library
 problems.  /usr/include/sys has nothing to do with Tomcat, the
 connectors,
 or Apache, as far as I know.  /usr/include/sys is where OS headers and
 libs
 are kept, I believe.
 
 John
 
 
 -Original Message-
 From: Wilson, Allen [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 10:01 PM
 To: Tomcat Users List; Tomcat Users List
 Subject: RE: Apache-Tomcat Configuring
 
 
 Thanks for the info
  
 I read through what you have and I ran into the errors below when I did
 the
 make on the JK connector configuration. I did not use the connectors
 that
 your steps indicated...I just the one provided in the
 jakarta-tomcat-connectors-4.1.18 file. 
  
 Allen
 
   -Original Message- 
   From: Turner, John [mailto:[EMAIL PROTECTED]] 
   Sent: Fri 2/7/2003 6:32 PM 
   To: 'Tomcat Users List' 
   Cc: 
   Subject: RE: Apache-Tomcat Configuring
   
   
 
 
   I have a Solaris 8 HOWTO here:  http://www.johnturner.com/howto.
 It
 uses
   Apache 2, but if you have the source to Apache the steps are the
 same.  Just
   sub in apache wherever it says apache2.  I'm assuming you
 are
 using
   Solaris because you have paths with /opt in them.
   
   In my experience, you want to use:
   
   ./configure --with-apxs=/some/path/to/apache/bin/apxs
   make
   make install
   
   ...to build the connector...it's much easier than ant, assuming
 you
 have a
   sane GNU build environment.
   
   John
   
   
   -Original Message-
   From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 07, 2003 6:00 PM
   To: Tomcat Users List
   Subject: Apache-Tomcat Configuring
   
   
   Hello
   
   I am trying to configure Apache (1.3.27) and Tomcat (4.1.18) to
 work
   together in preparation for adding JetSpeed.
   
   I have tried to following the instructions for creating
 mod_jk.so
 provided
   by the Wrox Professional Tomcat book and the Galatea.com Flash
 Guides and
   came up with errors on both.
   
   - With the Wrox book, I attempted to build it using the
 buildconf.so
 script
   and received the following errors when running the make..
   
   In file included from jk_global.h:103,
from jk_logger.h:67,
from jk_ajp12_worker.h:67,
from jk_ajp12_worker.c:65:
   /usr/include/sys/socketvar.h:54: parse error before
 `t_uscalar_t'
   /usr/include/sys/socketvar.h:54: warning: no semicolon at end of
 struct or
   union
   /usr/include/sys/socketvar.h:55: warning: data definition has no
 type or
   storage class
   /usr/include/sys/socketvar.h:222: parse error before
 `t_uscalar_t'
   /usr/include/sys/socketvar.h:222: warning: no semicolon at end
 of
 struct or
   union
   /usr/include/sys/socketvar.h:223: warning: data definition has
 no
 type or
   storage class
   /usr/include/sys/socketvar.h:224: parse error before
 `so_addr_size'
   /usr/include/sys/socketvar.h:224: warning: data definition has
 no
 type or
   storage class
   /usr/include/sys/socketvar.h:225: parse error before
 `so_opt_size'
   /usr/include/sys/socketvar.h:225: warning: data definition has
 no
 type or
   storage class
   /usr/include/sys/socketvar.h:226: parse error before
 `so_tidu_size'
   /usr/include/sys/socketvar.h:226: warning: data definition has
 no
 type or
   storage class
   /usr/include/sys/socketvar.h:227: parse error before
 `so_serv_type'
   /usr/include/sys/socketvar.h:227: warning: data definition has
 no
 type or
   storage class
   /usr/include/sys/socketvar.h:230: parse error before
 `so_acceptor_id'
   /usr/include/sys/socketvar.h:230: warning: data definition has
 no
 type or
   storage class
   /usr/include/sys/socketvar.h:274: parse error before `}'
   /usr/include/sys/socketvar.h:623: parse error before
 `t_scalar_t'
   /usr/include/sys/socketvar.h:623: warning: no semicolon at end
 of
 struct or
   union
   

RE: Porblem editing httpd.conf

2003-01-22 Thread Andy Eastham
John,

Do you not need to name it too, ie
LoadModule jk2_module modules/mod_jk2-2.0.43.so

Thats what's in my working set up anyway.

Andy

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 22 January 2003 18:07
 To: 'Tomcat Users List'
 Subject: RE: Porblem editing httpd.conf
 
 
 
 Tell it where:
 
 LoadModule modules/mod_jk2-2.0.43.so
 
 John
 
 
  -Original Message-
  From: pcampaigne [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 22, 2003 1:03 PM
  To: Tomcat Users List
  Subject: Porblem editing httpd.conf
  
  
  After I added the following line to httpd.conf, the httpd 
  server vails to start:
  LoadModule mod_jk2-2.0.43.so
  
  I get a syntax error at startup.
  What am I doing wrong here.  I am trying to tell it to load 
  the jk2 connector module.
  using tomcat4-4.1.18 and httpd 2.0.43
  Thanks,
  Phil
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




RE: Pick a Platform - Linux, Windows, Unix, Solaris...

2003-01-21 Thread Andy Eastham
Adoni,

Version 4.1.18 seems to be the current one and seems to be stable for me.

As for platforms, the best one depends on the situation.

Personal use: go for your favourite platform.

Customer use:  Ask them what their favourite platform is.  If it's windows
protest mildly, tell them windows sucks, then install it on windows anyway.

As it's all written in Java, you basically run the same code, so it's down
to the Java VM.  Choose any platform that has a decent j2sdk1.4
implementation.

Actually Tomcat works fine on windows, but some of the connectors that
connect web servers to tomcat are less reliable on windows.  If you're just
running tomcat standalone, this doesn't matter

Andy

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: 21 January 2003 12:23
 To: Tomcat Users List
 Subject: Pick a Platform - Linux, Windows, Unix, Solaris...


 If you could pick any platform to run Tomcat on what would it be.

 Also what version of Tomcat is now the one to go with?
 I.e. stable, reliable, etc.

 Andoni.

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





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




RE: Require a secure connection

2003-01-16 Thread Andy Eastham
try:

if (!request.isSecure())
{
// abort code here
}

You can put this in a superclass of all your secure servlets if you like.

Andy

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: 16 January 2003 22:09
 To: Tomcat Users List
 Subject: Require a secure connection


 Does anyone know how to *require* that a page be accessed only
 via a secure
 connection?

 For instance, I *can* request a secure connection to a page by going to
 https://; and the url ... but how do I prevent a user from going to
 http://; to request that same page?

 Would this be a proxy thing or is something I can set in Tomcat?  Is there
 something that wouldn't require the overhead of reflecting upon
 every single
 request at the Java level?

 Thanks.
 neal


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





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




RE: Servlet Mapping Bug?

2003-01-15 Thread Andy Eastham
This is a bug, as I've now checked the Servlet Specification v2.3:

The key phrase is:
The path used for mapping to a servlet is the request URL from the request
object minus the context path.
ie for my /control/plots/x.jpg request, the context path is /control, so
only /plots/x.jpg should be used to map the servlet.

I guess this bug is probably in the Coyote Connector?

Andy

PS
Here's the full text of the relevant bit from the servlet spec:

SRV.11.1 Use of URL Paths
Upon receipt of a client request, the web container determines the web
application to which to forward it. The web application selected must have
the longest context path that matches the start of the request URL.

The matched part of the URL is the context path when mapping to servlets.
The web container next must locate the servlet to process the request using
the path mapping procedure described below:
The path used for mapping to a servlet is the request URL from the request
object minus the context path. The URL path mapping rules below are used in
order. The first successful match is used with no further matches attempted:

1. The container will try to find an exact match of the path of the request
to the path of the servlet. A successful match selects the servlet.

2. The container will recursively try to match the longest path-prefix: This
is done by stepping down the path tree a directory at a time, using the '/'
character as a path separator. The longest match determines the servlet
selected.

3. If the last segment in the URL path contains an extension (e.g. .jsp),
the servlet
container will try to match a servlet that handles requests for the
extension.
An extension is defined as the part of the last segment after the last '.'
character.

4. If neither of the previous three rules result in a servlet match, the
container will
attempt to serve content appropriate for the resource requested. If a
default
servlet is defined for the application, it will be used.
The container must use case-sensitive string comparisons for matching.

Note 1. Previous versions of this specification made use of these mapping
techniques a suggestion rather than a requirement, allowing servlet
containers to each have their different schemes for mapping client requests
to servlets.

 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]]
 Sent: 14 January 2003 22:46
 To: Tomcat Users List
 Subject: Servlet Mapping Bug?


 Hi,

 I've just upgraded from Tomcat 4.0.4b1 and apache 1.3 using warp to Tomcat
 4.1.18 and Apache 2.0.43 using mod_jk2.

 I use a feature of servlet mapping in web.xml, where I map any
 request under
 a particular directory to a single servlet.  My application is mapped from
 Apache under the url /control/ and I invoke myServlet with any
 request to
 the plots subdirectory.  In the old configuration, the relevant
 part of my
 web.xml looked like:

 servlet-mapping
 servlet-name
 myServlet
 /servlet-name
 url-pattern
 /plots/*
 /url-pattern
 /servlet-mapping

 However, in my new setup, I have had to change this to make it work:

 servlet-mapping
 servlet-name
 myServlet
 /servlet-name
 url-pattern
 /control/plots/*
 /url-pattern
 /servlet-mapping

 ie put the full URI in the url-pattern, not just the path relative to the
 Tomcat application root.

 This strikes me as less portable - if I change my url mapping from Apache,
 I'll have to edit my web.xml, which wouldn't have been necessary
 before.  Is
 this a bug, or has it really been changed to better comply with
 the Servlet
 spec?

 Best regards,

 Andy Eastham



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





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




RE: Servlet Mapping Bug?

2003-01-15 Thread Andy Eastham
Holger,

Thanks for the tip.  I think you're right.

I just noticed that it is behaving diferently to how it was with warp and
webapp.

Cheers,

Andy

 -Original Message-
 From: Stratmann, Holger [mailto:[EMAIL PROTECTED]]
 Sent: 15 January 2003 15:56
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: AW: Servlet Mapping Bug?


   ie put the full URI in the url-pattern, not just the path
  relative to the
   Tomcat application root.

 Have you configured the Tomcat application root?

 I don't mean in Apache, I mean in server.xml?

 For each context you configure, you can also specify the URL-prefix.

 default:
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --

 !-- Tomcat Examples Context --
 Context path=/examples docBase=examples debug=0 .


 etc.
 Maybe you could solve your problem by just configuring path=/control
 here...
 (I don't think it's a bug?)

  -Ursprüngliche Nachricht-
  Von: Andy Eastham [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 15. Januar 2003 16:17
  An: Tomcat Users List
  Betreff: RE: Servlet Mapping Bug?
 
 
  This is a bug, as I've now checked the Servlet Specification v2.3:
 
  The key phrase is:
  The path used for mapping to a servlet is the request URL
  from the request
  object minus the context path.
  ie for my /control/plots/x.jpg request, the context path is
  /control, so
  only /plots/x.jpg should be used to map the servlet.
 
  I guess this bug is probably in the Coyote Connector?
 
  Andy
 
  PS
  Here's the full text of the relevant bit from the servlet spec:
 
  SRV.11.1 Use of URL Paths
  Upon receipt of a client request, the web container determines the web
  application to which to forward it. The web application
  selected must have
  the longest context path that matches the start of the request URL.
 
  The matched part of the URL is the context path when mapping
  to servlets.
  The web container next must locate the servlet to process the
  request using
  the path mapping procedure described below:
  The path used for mapping to a servlet is the request URL
  from the request
  object minus the context path. The URL path mapping rules
  below are used in
  order. The first successful match is used with no further
  matches attempted:
 
  1. The container will try to find an exact match of the path
  of the request
  to the path of the servlet. A successful match selects the servlet.
 
  2. The container will recursively try to match the longest
  path-prefix: This
  is done by stepping down the path tree a directory at a time,
  using the '/'
  character as a path separator. The longest match determines
  the servlet
  selected.
 
  3. If the last segment in the URL path contains an extension
  (e.g. .jsp),
  the servlet
  container will try to match a servlet that handles requests for the
  extension.
  An extension is defined as the part of the last segment after
  the last '.'
  character.
 
  4. If neither of the previous three rules result in a servlet
  match, the
  container will
  attempt to serve content appropriate for the resource requested. If a
  default
  servlet is defined for the application, it will be used.
  The container must use case-sensitive string comparisons for matching.
 
  Note 1. Previous versions of this specification made use of
  these mapping
  techniques a suggestion rather than a requirement, allowing servlet
  containers to each have their different schemes for mapping
  client requests
  to servlets.
 
   -Original Message-
   From: Andy Eastham [mailto:[EMAIL PROTECTED]]
   Sent: 14 January 2003 22:46
   To: Tomcat Users List
   Subject: Servlet Mapping Bug?
  
  
   Hi,
  
   I've just upgraded from Tomcat 4.0.4b1 and apache 1.3 using
  warp to Tomcat
   4.1.18 and Apache 2.0.43 using mod_jk2.
  
   I use a feature of servlet mapping in web.xml, where I map any
   request under
   a particular directory to a single servlet.  My application
  is mapped from
   Apache under the url /control/ and I invoke myServlet with any
   request to
   the plots subdirectory.  In the old configuration, the relevant
   part of my
   web.xml looked like:
  
   servlet-mapping
   servlet-name
   myServlet
   /servlet-name
   url-pattern
   /plots/*
   /url-pattern
   /servlet-mapping
  
   However, in my new setup, I have had to change this to make it work:
  
   servlet-mapping
   servlet-name
   myServlet
   /servlet-name
   url-pattern
   /control/plots/*
   /url-pattern
   /servlet-mapping
  
   ie put the full URI in the url-pattern, not just the path
  relative to the
   Tomcat application root.
  
   This strikes me as less portable - if I change my url
  mapping from Apache,
   I'll have to edit my web.xml, which wouldn't have been necessary
   before.  Is
   this a bug, or has it really

RE: Tomcat 4.1.18 Configuration with UNIX

2003-01-14 Thread Andy Eastham
Neginder,

I'm not sure if you sorted this.  If not, the problem looks like the system
is trying to create
/opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/examples/jsp/jsptoserv/
jsptoservlet_jsp.java.

Check that /opt/jakarta-tomcat-4.1.18/work/ exists and that the unix user
running Tomcat has permission to write to this directory.

Good luck,

Andy

 -Original Message-
 From: Neginder Singh [mailto:[EMAIL PROTECTED]]
 Sent: 14 January 2003 15:26
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.1.18 Configuration with UNIX



 Dear All

 I am trying to Install tomcat 4.1.18 on Unix Platform. When i try
 accessing
 the jsp examples JSP-Servlet-JSP,I get the following error.
 The same type of error is displayed accessing any JSP Examples from the
 examples/jsp/index.html.

 Could any one help me in sorting it out. Any help would be appreciated.


 Thanks.
 Regards.
 Neginder

 Error Page:

 org.apache.jasper.JasperException: Unable to compile class for JSP
   at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationCont
 ext.java:479)
   at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:184)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
pplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.java:260)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardConte
 xtValve.java:191)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
 icatorBase.java:493)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
 e.java:180)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
 cherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
 e.java:172)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:641)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
 Valve.java:174)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invokeNext(StandardPipeline.java:643)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
   at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr
 ocessConnection(Http11Protocol.java:386)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
 adPool.java:530)
   at java.lang.Thread.run(Thread.java:536)


 root cause

 java.io.FileNotFoundException:
 /opt/jakarta-tomcat-4.1.18/work/Standalone/localhost/examples/jsp/
 jsptoserv/jsptoservlet_jsp.java
 (No such file or directory)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.(FileOutputStream.java:176)
   at java.io.FileOutputStream.(FileOutputStream.java:70)
   at
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:212)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
   at
 

Servlet Mapping Bug?

2003-01-14 Thread Andy Eastham
Hi,

I've just upgraded from Tomcat 4.0.4b1 and apache 1.3 using warp to Tomcat
4.1.18 and Apache 2.0.43 using mod_jk2.

I use a feature of servlet mapping in web.xml, where I map any request under
a particular directory to a single servlet.  My application is mapped from
Apache under the url /control/ and I invoke myServlet with any request to
the plots subdirectory.  In the old configuration, the relevant part of my
web.xml looked like:

servlet-mapping
servlet-name
myServlet
/servlet-name
url-pattern
/plots/*
/url-pattern
/servlet-mapping

However, in my new setup, I have had to change this to make it work:

servlet-mapping
servlet-name
myServlet
/servlet-name
url-pattern
/control/plots/*
/url-pattern
/servlet-mapping

ie put the full URI in the url-pattern, not just the path relative to the
Tomcat application root.

This strikes me as less portable - if I change my url mapping from Apache,
I'll have to edit my web.xml, which wouldn't have been necessary before.  Is
this a bug, or has it really been changed to better comply with the Servlet
spec?

Best regards,

Andy Eastham



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




RE: Pb with HEAD request

2002-11-27 Thread Andy Eastham
Cedric,

The servlet container automatically handles head requests by calling doGet
but then only returns the headers.  This can be very inefficient in cases
such as yours.

The O'Reilly Java Servlet Programming book suggests at the top of doGet()
do:
request.setContentType(correctContentTypeForThisRequest);
if (request.getMothod().equals(HEAD)) return;

I've never tried this though.

Andy

 -Original Message-
 From: Cédric Viaud [mailto:[EMAIL PROTECTED]]
 Sent: 27 November 2002 13:31
 To: Tomcat Users List
 Subject: Re: Pb with HEAD request


 Hi Kristján,

 in fact, i've first check the RFC of HTTP 1.1 (see after the mail what it
 says about HEAD command). So i've look to the servlet specification .And
 haven't seen the doHead method.

 Next to your reply , i've checked again, and discover that i MISSED it :-(

 So i've coded the doHead method , but it never seems to be called by my
 servlet. I can't manage to know if this is a client or a server issue.

 Anyone gets an idea. ?

 Anynyway, i think i will have to implement a cache , because some
 of my Get
 actions need many calculation, and doing this twice for the same request
 will decrease the application performance.

 Thanks for help, regards,

Cédric


 --
 --
 
 From RFC 2616 about HTTP 1.1

 9.4 HEAD
 The HEAD method is identical to GET except that the server MUST
 NOT return a
 message-body in the response. The
 metainformation contained in the HTTP headers in response to a
 HEAD request
 SHOULD be identical to the
 information sent in response to a GET request. This method can be used for
 obtaining metainformation about the
 entity implied by the request without transferring the entity-body itself.
 This method is often used for testing
 hypertext links for validity, accessibility, and recent modification.
 The response to a HEAD request MAY be cacheable in the sense that the
 information contained in the response MAY
 be used to update a previously cached entity from that resource.
 If the new
 field values indicate that the cached entity
 differs from the current entity (as would be indicated by a change in
 Content-Length, Content-MD5, ETag
 or Last-Modified), then the cache MUST treat the cache entry as stale.



 - Original Message -
 From: Kristján Bjarni Guðmundsson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, November 26, 2002 4:40 PM
 Subject: Re: Pb with HEAD request


 You really should look into the servlet specification.
 I think if you override doHead for your servlet

 doHead(HttpServletRequest req, HttpServletResponse resp)

 Receives an HTTP HEAD request from the protected service method and
 handles the request.

 Default action for doHead is to simply call doGet

 Cédric Viaud [EMAIL PROTECTED] wrote on 26.11.2002 15:32:45:

  Hi,

  I have Tomcat server 4.0.4 on NT 4 that contains a servlets in
  charge to create SVG content.

  The client is Internet Explorer 5.5. It loads the following simple HTML
 page :

  html
  body
  embed width=200 height=200
 src=http://localhost:8080/myContext/MyServlet
  
  /body
  /html

  The problem is that my servlet is invoked twice.

  My supposition is that IE is sending a HEAD (or GET) request to know
  the content type of the URL and then run the Adobe SVG plugin. When
  started the plugin connects also the servlet to get SVG content.
  HTTP spec says that HEAD request must return the same headers as GET
  request. What is sure is that my code is executed twice, not only
  the part that concerns response headers. But how can I do to know
  with the servlet if the request is a GET or a HEAD. I test the
  HttpRequest.getMethod() but it always return GET.

  Does someone know how to configure tomcat or anything else to
  avoid the two executions ?

  Thanks.





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





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




RE: is there a free ide that gets along well with tomcat?

2002-11-21 Thread Andy Eastham
Sun One Studio needs 256Mb of memory.  If you haven't got that much, forget
it.  If you have, it rocks.

Andy

 -Original Message-
 From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
 Sent: 21 November 2002 21:29
 To: Tomcat Users List
 Subject: Re: is there a free ide that gets along well with tomcat?


  Hi Jennifer, this is steve burrus, and I am most curious about u
 apparently
 stating that the Sun One Studio (aka Forte) is irritating so
 you chose/decided
 to uninstall it unceremoniously :)!! How do you find it to be
 irritating
 because I also have certain issues with it, namely that I have
 to WAIT FOREVER
 for my PC's processor to be able to do the next operation in the
 application!!! I
 await breathlessly for your response.

 S.R.B.

 __
 Do you Yahoo!?
 Yahoo! News - Today's headlines
 http://news.yahoo.com

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




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




RE: windows iis machine + linux tomcat machine

2002-11-12 Thread Andy Eastham
Install Apache on the Linux machine and everything will work perfectly ;-)

 -Original Message-
 From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es]
 Sent: 12 November 2002 11:22
 To: [EMAIL PROTECTED]
 Subject: windows iis machine + linux tomcat machine


 what do you think is the best way to make work
 together this configuration:

   windows iis machine + linux tomcat machine

 NFS?

 ___
 Yahoo! Messenger
 Nueva versión: Webcam, voz, y mucho más ¡Gratis!
 Descárgalo ya desde http://messenger.yahoo.es

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: How MySQL Works?

2002-11-07 Thread Andy Eastham
Han Lin,

I don't know the answer, but if I wanted to find out, I'd download the
source code and take a look.

That's why we use open source isn't it?

Andy

 -Original Message-
 From: Unidux (S) - Han Lin [mailto:hanlim;unidux.com.sg]
 Sent: 07 November 2002 03:31
 To: [EMAIL PROTECTED]
 Subject: How MySQL Works?


 Hi Guys,

 I wanna know what the steps MySQL perform when we do INSERT in Database?

 Anyone can explain? Or anyone here have some reference about how MySQL
 works?

 Thanks,
 Han Lin


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat 4.1 and apache 1.3 how-to

2002-11-05 Thread Andy Eastham
Sorry,

I meant to send this directly to Zack rather than back to the list,

Andy
 -Original Message-
 From: Andy Eastham [mailto:andy.eastham;gliant.com]
 Sent: 05 November 2002 10:32
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 and apache 1.3 how-to


 Zack,

 Here's the mod_webapp.so binary that comes with Solaris 9, which I know is
 binary compatible with 8, therefore maybe 7 too?

 Give it a try anyway.

 Good luck,

 Andy

  -Original Message-
  From: Beatty, Z [mailto:zackbeatty;yahoo.com]
  Sent: 05 November 2002 04:20
  To: Tomcat Users List
  Subject: Tomcat 4.1 and apache 1.3 how-to
 
 
  Can anyone point me in the right direction, for
  connecting Apache 1.3 and Tomcat 4.12, on Solaris 7?
  Should I try mod_webapp, mod_jk, or mod_jk2?   I need
  a binary file, for whatever connector I choose.
  Please don't respond with RTFM.  There are no binaries
  avaiable in:
  http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/rele
 ase/v1.2.0/bin/

 Also, there isn't even a Solaris 7 directory (only 6
 and 8).   Does that matter?

 I would prefer to use mod_webapp, due to the
 simplicity of the installation process.   I installed
 that on Win2000 a while ago, but there are no Solaris
 binaries available anywhere.

 Thanks.

 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Session start

2002-10-30 Thread Andy Eastham
In my experience, IE 6 creates a new session cookie for each browser
window...

Andy

 -Original Message-
 From: Nick Lombard (VSP) [mailto:nick.lombard;vcontractor.co.za]
 Sent: 30 October 2002 15:25
 To: Tomcat Users List
 Subject: RE: Session start


 Hi Mauro

 At least this one I can answer for you.

 You will deffinitely not be able to start a new session for each browser
 window opened if you are using session cookies.

 The Session cookie specification is slightly different to that of normal
 cookies. It shares the same rule that the browser will send the
 cookie only
 to the domain from which it originated. But the session cookie lasts the
 lifetime of the browser whereas the normal cookie will be saved. So if a
 browser is closed (not just a window of the same browser process)
 the cookie
 will die with it. All the browser windows share the same cookies and if a
 session cookie is available for a the domain being accessed the
 cookie will
 be sent along.

 I.o.w if your servlet/jsp makes a call to request.getSession(true); the
 session ID identified in the request will return the session object stored
 at the server identified by the session ID in the request
 (cookie) if there
 is no session id or the session has expired on the server a new
 session will
 be created and a request will be made to the browser to kindly return a
 session cookie with the supplied id. If request.getSession(false); is
 called, the same process as above occurs but a new session will not be
 created.

 Thus to understand who the session id belongs to the answer is something
 like: The session id as a cookie is kept for the lifetime of a browser
 process on the client and identified on the server. Different vendor
 browsers will all have their own session cookies and thus session ids.

 To solve your problem it is correct what Ralph said.
 A session cookie cannot be used because the cookie is shared by
 all browser
 windows of the same browser process. The sollution is url
 rewriting in which
 the session id is not sent by a cookie but is sent as a request parameter
 and thus if the client opens a new browser window and types in your URL it
 will not contain the session id request parameter and thus a new
 session can
 be created on the server. This might not be the case if the
 client asks for
 a link on your application to open in a new window because the parameter
 might be in the link.

 I hope this makes it slightly clearer.

 Nick.




 -Original Message-
 From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar]
 Sent: Wednesday, October 30, 2002 4:38 PM
 To: Tomcat Users List
 Subject: RE: Session start


 OK, but I still have some servlets that have to communicate using
 HttpSession setting and getting objects between them.  So if on each call
 to different servlets I obtain a new session, then I loose the objects
 contained in the session.

 So reading your answer I think that the problem is to who belongs the
 session id.  Does it belongs to the machine that is browsing? I mean: the
 IP address? I don't think so because in multiple text sessions of the same
 linux machine, browsing from each the same servlet, I obtain different
 sessions.  Does it belongs to the user?  which user?  windows user?  linux
 user? other OS users?  No, the same user on different linux sessions, gets
 different HttpSession.  So I have to think that depends on the
 OS.  E.g. on linux it depends on the linux session.  I'd like to bypass
 this behavior opening a session each time a user opens a browser.  I
 think I have to rescue a browser window id or something like that from
 the HttpServletRequest.

 Any ideas?

 Thanks,

 Mauro



 On Wed, 30 Oct 2002, Ralph Einfeldt wrote:

  It's quite simple.
 
  Whenever a request reaches tomcat that contains no
  session id (url or cookie) or a session id that
  doesn't belongs to a active session, tomcat creates
  a new session.
 
  To do what you want you have to disable cookies
  in tomcat. This way you will get a new session
  whenever a new window is opened and the url that
  is used for the window contains no session id.
 
  Ralph Einfeldt
  Uptime Internet Solution Center GmbH
  Hamburg, Germany
  Hosting, Content Management, Java Consulting
  http://www.uptime-isc.de
 
   -Original Message-
   From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar]
   Sent: Tuesday, October 29, 2002 5:13 PM
   To: [EMAIL PROTECTED]
   Subject: Session start
  
   I'm confussed about when does a session starts.
  
   Browsing with netscape on a linux gui, opening 2 browsers,
   calling the same servlet, the session is shared.  I want
   to start a new  session! I mean every time a user opens a
   new browser or a new window of the browser and calls my
   servlet, I want to start a new session.
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 

 --
 Ing.Mauro 

RE: AJP13 ..You must Read this !

2002-10-29 Thread Andy Eastham
It's not something to do with line feeds / carriage returns is it?

Andy

 -Original Message-
 From: Sigurður Bjarnason [mailto:siggi;betware.com]
 Sent: 29 October 2002 11:55
 To: Tomcat (E-mail)
 Subject: AJP13 ..You must Read this !




 Hi all

 I been having a very strange problem with the ajp13 connector..

 OK the senario is this.. I have apache configured with ajp13 and
 mod_jk.so .. Everything is working ok.. and I have Jboss + Tomcat
 that apache is talking to.. Everything..is working there also..

 I am doing ab ( Apache Bench ) tests to this setup, I start the
 Jboss bundle and do a test... I get some errors on the test
 telling me that about 60% of the requests fails !

 Ok Then. I open tomcat4-service.xml and JUST write it to deploy
 it again ( I dont change anything ) ..  and do another AB test..
 and guess what.. NO errors.. ??!?!?!

 I have done this about 50 times to verify that I am not
 mistaken.. So do anyone have a CLUE what could be going on with
 the connection..

 These are my ajp13 settings on Jboss..

  !-- A HTTP Connector on port 8080 --
 Connector className =
 org.apache.catalina.connector.http.HttpConnector
port = 8080 minProcessors = 75 maxProcessors =
 300 enableLookups = true
acceptCount = 80 debug = 0 connectionTimeout =
 6/
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
  minProcessors=75 maxProcessors=300
 enableLookups=true acceptCount=80 debug=1 /


 Best Regards
 Siggi

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_webapp and multithreading for concurrent requests

2002-10-23 Thread Andy Eastham
Eliot,

Webapp does appear single threaded on win32.  I'd go so far as to say it's
unusable in a production environment on win32.  I develop using it on my win
2k laptop and deploy on linux or Solaris.  Webapp is forever hanging when I
try to execute concurrent requests from the same browser on windows.  It
seams OK on Unix though.

I think you should consider using mod_jk or mod_jk2 on windows as they are
currently actively developed.  However, I don't know for sure as I wouldn't
even _think_ about deploying a production system on windows anyway...

Sorry to be the bearer of bad news...

Andy

 -Original Message-
 From: Eliot James Ormond Stock [mailto:theman;eliotstock.com]
 Sent: 23 October 2002 12:53
 To: [EMAIL PROTECTED]
 Subject: mod_webapp and multithreading for concurrent requests


 Hi all,

 I'm running Apache 1.3.27, Tomcat 4.1.12 (both as services on Win32)
 with mod_webapp, and I need someone to explain to me how mod_webapp
 passes requests to Tomcat. The docs are a bit thin.

 I have a couple of test servlets: waiter and notifier. When I hit the
 waiter it blocks waiting for the notifier to notify it. When I hit the
 notifier it notifies the waiter and writes some output to the browser.
 The waiter then writes some output too so I can see that both
 have finished.

 I actually have Tomcat set up with both the WARP connector listening to
 requests that come via Apache, and the Coyote connector listening to
 requests diurectly on port 8080.

 When I hit the servlets on port 8080 everything works as expected. But
 when I hit them on port 80, via mod_webapp, there's a problem: the
 notifer never gets to execute. It seems mod_webapp is behaving as if
 it's a single thread (I have read stuff that suggests it is not, and I
 would hope it's not for obvious performance reasons). What I'm seeing is
 that the request for the writer is handled just fine up to the point
 where it blocks, but when I hit the notifier the request is never
 processed because the thread is still handling the waiter request.

 Can anyone shed any light on this?

 Thanks in advance,

 Eliot Stock
 Picopoint BV






 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Warp connections

2002-10-01 Thread Andy Eastham
Title: Re: Warp connections



Siggi,

What 
this means is that if you map, for example, /myapp to Tomcat, Tomcat will serve 
all content under /myapp. You cannot get Apache to serve 
/myapp/my.jpg.

Apache 
will still serve things that aren't under /myapp, so /index.html, /images/my.jpg 
etc _will_ be served by Apache.

Does 
this clarify the situation?

All 
the best,

Andy

  -Original Message-From: Sigurður Bjarnason 
  [mailto:[EMAIL PROTECTED]]Sent: 01 October 2002 13:45To: 
  Tomcat Users ListSubject: RE: Warp connections
  Ok.. So what is the use of the connector then ?!?!?!?
  
  If not to let Tomcat serve the Jsp and Servlets.. witch it is supposed to 
  do. ?!?
  
  This makes no sense at all to have this connector then.. ... If Tomcat 
  ends up serving all the content ! Then it would just be better to leave 
  out Apache to save cpu and so on !..
  
  This has to be misunderstanding !.. From my point of view, if the 
  connector cannot do this.. I just Get rid of Apache and let Tomcat do all the 
  work.. witch is does.. anyway if I use Warp..
  
  
  regards 
  Siggi
  
  
-Original Message- From: Jim Coble 
[mailto:[EMAIL PROTECTED]] Sent: lau. 28.9.2002 17:10 
To: Tomcat Users List Cc: Subject: Re: Warp 
connections 
Someone with more experience may have a better answer but it 
is myunderstanding that mod_webapp does not permit you to distinguish 
betweenstatic and dynamic content. When you use mod_webapp, Tomcat 
services allrequests; i.e., you can't do what you want to do--serve html 
with Apacheand jsp/servlets with Tomcat--using mod_webapp -- you would 
have tocontinue using mod_jk if that's what you want to 
do.--Jim==Jim 
CobleSenior Technology SpecialistCenter for Instructional 
TechnologyEmail: [EMAIL PROTECTED]Voice: 919-660-5974 Fax: 
919-660-5923Box 90198, Duke UniversityDurham, NC 
27708-0198== 
Sigurður 
Bjarnason 
To: "Tomcat Users List" 
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 
cc: 
m 
Subject: Warp 
connections 
09/28/2002 
12:17 
PM 
Please respond 
to 
"Tomcat 
Users 
List"Hi 
all..I want to use the mod_webapp module for apache to connect it to 
tomcat.. Ihave one question about thisThe thing is.. i want 
apache to serve all static content.. like html andlet tomcat handle the 
jsp and servlets.Now when i use the apj1.2 connector with mod_jk.so 
i use line likeJkMount /TESTSUITE/servlet/* ajp12JkMount 
/TESTSUITE/*.jsp ajp12when i use the mod_webapp.. i use lines like 
as followsWebAppDeploy 
examples conn /examples..that is here 
that i have a problem ! how can i exclude the jsppages... with 
this. ?!i have tryed to 
useWebAppDeploy 
examples conn /examples/*.jspBut that have 
not worked for me.. so if someone out there have the answer..i would be 
greatful ! :)RegardsSiggi(See 
attached file: winmail.dat)--To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]For 
additional commands, e-mail: mailto:[EMAIL PROTECTED]
attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Job Openings

2002-09-19 Thread Andy Eastham

Looks like a company that would employ Java professionals to me.  Clearly
synergy.com. is not a recruitment consultant.

I'm sure there are plenty of people on this list at the moment that
appreciate the fact that someone is recruiting people with core, serverside
Java, JSP, XML and XSL.

I agree it's not spot on topic, but it seems pretty genuine to me.  Give the
guy a break.

Andy

 -Original Message-
 From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
 Sent: 18 September 2002 16:04
 To: Tomcat Users List
 Subject: Re: Job Openings


 Do you REALLY have jobs or are you just collecting resumes?
 - Original Message -
 From: Pooleery, Manoj [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, September 18, 2002 10:21 AM
 Subject: Job Openings


  Hi,
 
  My company is looking for experienced Java professionals with
 3-4 years of
  experience.  Experience in core, serverside Java, JSP, XML and XSL is a
  must.
 
  If you are interested, please send your resume to [EMAIL PROTECTED]
 
  Thanks
  Manoj.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 18, 2002 11:03 AM
  To: Tomcat Users List
  Subject: RE: Redirect not working
 
 
 
  I'm quite sure: in one case I explicitly do a
 sendRedirect(newurl) from
  within a servlet.
  Furthermore, the response code is 302, which is a temporary redirection.
 
 
 
 
 
 
  Jonathan Soons [EMAIL PROTECTED] on 18/09/2002 15.45.03
 
  Please respond to Tomcat Users List [EMAIL PROTECTED]
 
  To:Tomcat Users List [EMAIL PROTECTED]
  cc:
 
  Subject:RE: Redirect not working
 
 
  Are you sure that is a Redirect? Redirect requires  /path  -  URL.
  Yours looks like an Alias.
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 18, 2002 7:12 AM
  To: [EMAIL PROTECTED]
  Subject: Redirect not working
 
 
  Hi all.
  My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same
  behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0.
  If I deploy examples webapp and access it through Tomcat's standalone
  listener (port 8080) everything works ok.
  When I access it through Apache, it works well until I find some kind of
  redirection (ie /examples/ - /examples/index.html), then I get a page
 with
  the message:
  Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily
  but redirection is NOT followed by the browser (I've tried various
 versions
  of IE, Netscape, Mozilla...).
  If I try to connect using telnet, the response with port 8080 is:
  HTTP/1.1 302 Moved Temporarily
  while through Apache is:
  HTTP/1.1 Moved Temporarily
  Nevertheless, in access.log of Apache the status code for my request is
  correctly set to 302.
  Same behaviour if I do a sendRedirect from within a servlet or jsp,
  redirecting to another servlet (no static content at all).
 
  Can anybody help me?
 
  TIA, Carlo
 
 
 
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 Carlo Montanari
 Sysadm
 Unix office
 T-Systems Italia
 debis IT Services Italia S.p.A.
 Via degli Ontani, 25
 36100 - Vicenza
 Phone: +39 0444 558355
 Fax: +39 0444 558352
 Mobile: +39 348 4530249
 e-mail: [EMAIL PROTECTED]
 Internet: http://www.t-systems.it
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


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





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




RE: Restart webapp after Exception

2002-09-08 Thread Andy Eastham

Paul,

I'm afraid it looks like you have to write code that doesn't eat all the
memory on the server ;-)

Andy

 -Original Message-
 From: Paul Andreas Petershagen [mailto:[EMAIL PROTECTED]]
 Sent: 08 September 2002 22:18
 To: [EMAIL PROTECTED]
 Subject: Restart webapp after Exception


 Hi,

 I have a problem with a webapp application. It produces sometimes a
 java.lang.OutOfMemory error and Tomcat is going to
 shut it down like this:

 java.lang.OutOfMemoryError
 java.lang.OutOfMemoryError
 Stopping service Tomcat-Standalone
 Exception during startup processing
 java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.4-b3

 After this, the webapp wasn't available any more. I had to stop and start
 Tomcat by myself.
 What can I do to get Tomcat restart correctly?

 I set the JVM head size to bigger values but what if this doesn't
 help? How
 can I guarantee a running / stable system?

 Thanks in advance,

   Paul


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





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




RE: Best practice advice sought: Classes shared by 1 webapp

2002-09-06 Thread Andy Eastham

Jim,

If you want the webapps to share the same static values in the same class,
put them in common/classes. (this allows a webapps to affect the data in
another webapp).

If you want the webapps to be totally independent, put a separate copy in
each webapp's individual classes directory.

Or you may want to share some classes and not share others. Put them in the
appropriate place according to the above.

Note: This is because each webapp has it's own class loader, so behaviour is
different to normal java programs where static values are shared across
the whole virtual machine.

Hope this helps a bit,

Andy

 -Original Message-
 From: Jim Coble [mailto:[EMAIL PROTECTED]]
 Sent: 06 September 2002 20:08
 To: [EMAIL PROTECTED]
 Subject: Best practice advice sought: Classes shared by 1 webapp


 I am developing two web applications that will share a few classes in
 common.  What is the best practice for handling this?  Put a copy of the
 class in the WEB-INF/classes/ directory structure of both web
 applications?
 Or put the class in Tomcat's common/classes/ directory structure?  These
 common classes are specific to our business, not general purpose ones.
 Also, these web applications are for our own internal use only, not ones
 that we will bundle up and distribute, though we will need to
 manage moving
 them successfully from our development server to our production server.

 Thanks in advance for any advice on best practices in this situation.
 --Jim

 ==
 Jim Coble
 Senior Technology Specialist
 Center for Instructional Technology
 Email: [EMAIL PROTECTED]
 Voice: 919-660-5974  Fax: 919-660-5923
 Box 90198, Duke University
 Durham, NC 27708-0198
 ==



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





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




RE: load-on-startup order seems incorrect...

2002-09-05 Thread Andy Eastham

Jeff,

Try 10 and 20 or 1 and 2.

I know negative numbers don't necessarily start up before 1, maybe 0 doesn't
either.

Andy

 -Original Message-
 From: Jeff Wishnie [mailto:[EMAIL PROTECTED]]
 Sent: 05 September 2002 18:22
 To: Tomcat Users List
 Subject: load-on-startup order seems incorrect...


 I have two load-on-startup servlets in my apps web.xml . One is set as 0,
 the other as 1.

 According the the servlet spec, containers should guarantee that servlet's
 with lower load-on-startup values should load first, but according to my
 logs, Servlet 1 gets its init called before servlet 0.

 I'm using Tomcat 4.1.7 on Redhat 7.2

 Any idea why the load is happening in the reverse order?

 Thanks,

 jeff


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





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




RE: Windows HowTo for TC 4.1.10 + Apache 2.0.40 + mod_jk2

2002-09-04 Thread Andy Eastham

Robert,

This is excellent.  I'm going to give it all another go later this week with
the aid of your work.

My only comment is that I'd replace:
Set system environment variables for Java home.
C:\java
with
Set system environment variables for Java home.
JAVA_HOME = C:\java

like you do for Cataline home below.

It might avoid confusion for someone.

Cheers and thanks very much,

Andy

 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED]]
 Sent: 04 September 2002 10:22
 To: 'Tomcat Users List'
 Subject: RE: Windows HowTo for TC 4.1.10 + Apache 2.0.40 + mod_jk2


 Good work!

 One exception:
 You don't need JVM in the [wm] section for jk2 to work.
 If ommited it will be found from the Registry.

 MT.

  -Original Message-
  From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 04, 2002 11:11 AM
  To: Tomcat Users List
  Subject: Windows HowTo for TC 4.1.10 + Apache 2.0.40 + mod_jk2
 
 
  Here is a short HowTo to get it all installed and working on Win2k.
  Sorry all I have is a Word document.  Give it a try, feedback is
  appreciated.
  Probably lots of typo's in it.  Let me know.
 
  ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JS
 DK1.4.zip

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




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





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




RE: Is Tomcat just an add-on?

2002-09-04 Thread Andy Eastham

Ben,

It's both, depending on how you configure it.  It's pretty efficient
standalone, or you can integrate with a web server to serve static content
if you've got high traffic levels.

Andy

 -Original Message-
 From: Ben Austin [mailto:[EMAIL PROTECTED]]
 Sent: 04 September 2002 22:16
 To: [EMAIL PROTECTED]
 Subject: Is Tomcat just an add-on?


 Is Tomcat a web server or is it just an add-on for web servers
 that are not
 servlet-enabled?




 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx


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





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




RE: Apache 2.0.40 + mod_jk + Tomcat 4.1.9 + Load Balancing

2002-09-03 Thread Andy Eastham

Pascal,

On the grounds that this is probably the most FAQ on this list, I think it
would be fantastic.

Thanks in anticipation!

Andy

 -Original Message-
 From: Pascal Forget [mailto:[EMAIL PROTECTED]]
 Sent: 03 September 2002 15:29
 To: [EMAIL PROTECTED]
 Subject: Apache 2.0.40 + mod_jk + Tomcat 4.1.9 + Load Balancing


 Hi All,

 Last January I wrote up a document on how to set up Apache 1.3 with
 mod_jk and tomcat 4.0.2 on Linux with load balancing.
 (see www.ubeans.com/tomcat).

 Last week I suceeded in setting up Apache 2.0.40 with mod_jk and
 Tomcat 4.1.9 beta on Linux.

 Is there any interest in this group for me to write up a howto for this
 new setup?

 Pascal



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





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




RE: I have connector problem while using tomcat 4+apach 1.3

2002-08-29 Thread Andy Eastham

Taehun,

I had exactly this problem last week.  Tomcat is fine with mod_webapp on
windows 2000 and linux,but _binary_ file uploads fail on Solaris.  It seems
to be a bug in the Solaris version of mod_webapp (I used the one shipped
with Solaris 9).

I'm afraid I didn't fix the problem - I just deployed this particular
application on Linux rather than Solaris.

I'd be interested if you find a solution though.

All the best,

Andy

 -Original Message-
 From: taehun.kim [mailto:[EMAIL PROTECTED]]
 Sent: 29 August 2002 14:21
 To: [EMAIL PROTECTED]
 Subject: I have connector problem while using tomcat 4+apach 1.3
 Importance: High


 Hi, All!

 I'm running Tomcat 4.0 and Apache 1.3 on Solaris8.
 I succeed in install and configuration except one thing.
 The problem is FILE UPLOAD. My file upload servlet working well
 when I run Tomcat as standalone only. I can upload any kind of file.
 But If I start apache server and try to upload file via apache, I can't
 upload any file except plain text file.(eg. .txt, .html)
 other files are just uploaded the part of them. what I mean is that
 if I try to upload 500 bytes sized file, only about 50 bytes are uploaded.
 (the uploaded size is not fixed)

 I think warp connector may cause this problem but not sure and I couldn't
 solve this problem. Anybody has some idea, let me know please.

 best regards

 Taehun
 -
 DreamWiz Free Mail @ http://www.dreamwiz.com/
 DreamSearch Click the world!!! http://search.dreamwiz.com/



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





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




RE: How can I see log4j output on the console?

2002-08-27 Thread Andy Eastham

Michael,

Here's an example config file that logs to a file and the console.

Andy

 -Original Message-
 From: Michael [mailto:[EMAIL PROTECTED]]
 Sent: 27 August 2002 09:16
 To: Tomcat Users List
 Subject: How can I see log4j output on the console?
 
 
 My log4j log messages go to a logfile but I'd really like to see them in
 the console output.  Is it possible to do this??
 
 Michael
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd

log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false

	appender name=WWWS class=org.apache.log4j.FileAppender
param name=File   value=/var/faulkes-rti/logs/Centre.log /
param name=Append value=false /		
layout class=org.apache.log4j.PatternLayout
		param name=ConversionPattern value=%d{MMddHHmmssSSS} %-5p [%t] %c{2} (%F:%L) - %m%n/
/layout	
	/appender
	
	appender name=Console class=org.apache.log4j.ConsoleAppender	
	layout class=org.apache.log4j.PatternLayout
	param name=ConversionPattern value=%d{MMddHHmmssSSS} %-5p [%t] %c{2} (%F:%L) - %m%n/
	/layout		
	/appender

	
	root
	priority value =debug /
   	appender-ref ref=WWWS /
   	appender-ref ref=Console /
	/root
	
	
/log4j:configuration



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


RE: Run Tomcat as tomcat user

2002-08-16 Thread Andy Eastham

Urtzi,

You need to grant access to the tomcat user.  See the section in the GRANT
command in the mysql manual (available online at the www.mysql.com site).
By default, root can connect without a password, but other users need to be
granted access.

You'll need to execute something like:
GRANT ALL PRIVILEGES on *.* to nobody@yourhostname identified by
‘nobodyspassword’;

The password is not the unix password - its mysql specific and set by this
command.

I recommend you read up to make sure you're only grant what you need - after
all there's no point running as nobody if it can do everything root can...

Test it by doing
su - nobody
then check that you can connect with the password you've set.

Andy

 -Original Message-
 From: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]]
 Sent: 16 August 2002 11:04
 To: [EMAIL PROTECTED]
 Subject: Run Tomcat as tomcat user



 Hi !

 I am trying to run tomcat as tomcat user. When I start it, it
 seems to start without any problem. I execute some jsp and it
 works fine but when I execute a page tha require to connect to
 mysql database it cant't connect to the database and an empty log
 named something like DCB_1029483253596.log is generated. Running
 tomcat as root I haven't any problem.

 ¿any idea?

 Regards,

 Urtzi.


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





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




RE: Suppression of directory listing in Tomcat

2002-07-31 Thread Andy Eastham

Nikolas,

Go to www.moreservlets.com and look at the sample chapter on web.xml.  It's
an excellent resource and section 5.7 explains what you want.

Cheers,

Andy

 -Original Message-
 From: Nikolas A. Rathert [mailto:[EMAIL PROTECTED]]
 Sent: 31 July 2002 11:25
 To: [EMAIL PROTECTED]
 Subject: Suppression of directory listing in Tomcat


 Hi - I just posted some hours ago.
 Could anybody give me a hint for my problem please: how do I have to
 configure server.xml or whatever to tell Tomcat that it should not show
 the complete directory to the user in case there is no index.html or
 something like that in the directory?
 I know how to handle that with Apache but the htdocs directory has
 nothing to do with Tomcats webapps. Therefore, there has to be another
 solution.

 Cheers,

 Nick



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





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




RE: forwarding to a jsp using a servlet

2002-07-29 Thread Andy Eastham

Billy,

Try this in your doGet / process method:
(I put my jsps under WEB-INF so they are not servable directly).

   String url = FileUtil.makeJspUrl(/WEB_INF/jspDir/test.jsp);
   response.setContentType(text/html);
   ServletContext sc = getServletContext();
   RequestDispatcher rd = sc.getRequestDispatcher(url);
   rd.include(request, response);

Andy

 -Original Message-
 From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
 Sent: 29 July 2002 13:59
 To: Tomcat Users List
 Subject: forwarding to a jsp using a servlet


 can some one please tell me how i coulod make a forward from a
 servlet to a
 jsp i need to use the same url plus
 i dont want in some cases the destination address apiasring on the address
 bar


 thanks in advance
 Billy

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





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




RE: forwarding to a jsp using a servlet

2002-07-29 Thread Andy Eastham

Billy,

Sorry - I included my File Utility class by mistake.  I hard coded the
result in the message and still left the method call - doh.

Try again:
String url =  /WEB_INF/jspDir/test.jsp;
response.setContentType(text/html);
ServletContext sc =  setServletContext();
RequestDispatcher rd =  sc.getRequestDispatcher(url);
rd.include(request, response);

Andy


 -Original Message-
 From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
 Sent: 29 July 2002 15:11
 To: Tomcat Users List
 Subject: RE: forwarding to a jsp using a servlet



 thanks i will try this
 ---Original Message---

 From: Tomcat Users List
 Date: 29 July 2002 14:46:04
 To: Tomcat Users List
 Subject: RE: forwarding to a jsp using a servlet

 Billy,

 Try this in your doGet / process method:
 (I put my jsps under WEB-INF so they are not servable directly).

 String url =ileUtil.makeJspUrl(/WEB_INF/jspDir/test.jsp);
 response.setContentType(text/html);
 ServletContext sc =etServletContext();
 RequestDispatcher rd =c.getRequestDispatcher(url);
 rd.include(request, response);

 Andy

  -Original Message-
  From: Billy V. Kantartzis [mailto:[EMAIL PROTECTED]]
  Sent: 29 July 2002 13:59
  To: Tomcat Users List
  Subject: forwarding to a jsp using a servlet
 
 
  can some one please tell me how i coulod make a forward from a
  servlet to a
  jsp i need to use the same url plus
  i dont want in some cases the destination address apiasring on
 the address
  bar
 
 
  thanks in advance
  Billy
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 



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

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





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




RE: newbie has mod_jk question

2002-07-18 Thread Andy Eastham

Jez,

This would be great if it was correct and not completely out of date..;-)

Andy

 -Original Message-
 From: Joseph Savard [mailto:[EMAIL PROTECTED]]
 Sent: 18 July 2002 14:33
 To: Tomcat Users List
 Subject: Re: newbie has mod_jk question


 Google can be of great help to you...

 Here is the search I used for google???

 http://www.google.com/search?hl=enie=UTF-8oe=UTF-
 8q=howto+apache+tomcat

 and it produced this link...
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

 Try this method first before as it will save you time and the
 answer is as
 immediate as you can get!!

 Cheers,
 jes



 On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:

  I can't seem to find the src for the Apache 2 mod_jk or
 whatever it changed
  to?   Is the old 1.3.x src for mod_jk alright to compile
 against for Apache
  2?  I also noticed that on my install of Tomcat 4.0.2 there is
 no placement
  directory under /native for apache2 or libexec directory for
 putting the .so
  files in Apache2 after compilation, I think that's right, I
 have tried to
  find a howto on the building the mod_jk2.0 src but come up with page not
  found or nothing at all.  Anybody know where these might be
 found, and where
  do I actually put things once the ball gets rolling.  Thanks.  Trask.
 
  Unix has its weak points but its file system is not one of them.
 
  - Chris Torek
 
 
 
 
 --
 
  CONFIDENTIALITY NOTICE: If you have received this e-mail in
 error, please immediately notify the sender by e-mail at the
 address shown.  This e-mail transmission may contain confidential
 information.  This information is intended only for the use of
 the individual(s) or entity to whom it is
 intended even if addressed incorrectly.  Please delete it from
 your files if you are not the intended recipient.  Thank you for
 your compliance. Copyright (c) 2002 CIGNA
 
  
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




Joseph E. Savard
Principal
Applied Information Technologies, Inc.
Words are, of course, the most powerful drug used by mankind. - Kipling

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




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




RE: newbie has mod_jk question

2002-07-18 Thread Andy Eastham

John,

It's easy to get it working with apache 1.3.x.

It's painfully difficult to get any connectors working on apache 2.  I've
given up twice.

Andy

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: 18 July 2002 16:20
 To: 'Tomcat Users List'
 Subject: RE: newbie has mod_jk question



 Many people have gotten it working.  I have it working on apache 1.3.x.

 If you can be more specific, there are bound to be people who can
 help, but
 general questions are pretty difficult to answer.

 Have your checked the resources out there?  Such as:
 http://www.galatea.com/flashguides/index  (I'm not vouching for
 the accuracy
 of those guides, just pointing them out).

 John Turner
 [EMAIL PROTECTED]


 -Original Message-
 From: Billingham, Walter 475 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 18, 2002 11:04 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie has mod_jk question


 Hey,

   I guess the next logical question is who has actually compiled
 mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
 mod_jwhatever and AJP 1.x working and will he share the wealth of his
 endeavors?


 Unix has its weak points but its file system is not one of them.

 - Chris Torek


  -Original Message-
  From:   Andy Eastham [SMTP:[EMAIL PROTECTED]]
  Sent:   Thursday, July 18, 2002 10:53 AM
  To: Tomcat Users List
  Subject:RE: newbie has mod_jk question
 
  Jez,
 
  This would be great if it was correct and not completely out of
 date..;-)
 
  Andy
 
   -Original Message-
   From: Joseph Savard [mailto:[EMAIL PROTECTED]]
   Sent: 18 July 2002 14:33
   To: Tomcat Users List
   Subject: Re: newbie has mod_jk question
  
  
   Google can be of great help to you...
  
   Here is the search I used for google???
  
   http://www.google.com/search?hl=enie=UTF-8oe=UTF-
   8q=howto+apache+tomcat
  
   and it produced this link...
  
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
  
   Try this method first before as it will save you time and the
   answer is as
   immediate as you can get!!
  
   Cheers,
   jes
  
  
  
   On 18 Jul 2002 at 9:27, Billingham, Walter  475 wrote:
  
I can't seem to find the src for the Apache 2 mod_jk or
   whatever it changed
to?   Is the old 1.3.x src for mod_jk alright to compile
   against for Apache
2?  I also noticed that on my install of Tomcat 4.0.2 there is
   no placement
directory under /native for apache2 or libexec directory for
   putting the .so
files in Apache2 after compilation, I think that's right, I
   have tried to
find a howto on the building the mod_jk2.0 src but come up with page
  not
found or nothing at all.  Anybody know where these might be
   found, and where
do I actually put things once the ball gets rolling.
 Thanks.  Trask.
   
Unix has its weak points but its file system is not one of them.
   
- Chris Torek
   
   
   
   
   --
   
CONFIDENTIALITY NOTICE: If you have received this e-mail in
   error, please immediately notify the sender by e-mail at the
   address shown.  This e-mail transmission may contain confidential
   information.  This information is intended only for the use of
   the individual(s) or entity to whom it is
   intended even if addressed incorrectly.  Please delete it from
   your files if you are not the intended recipient.  Thank you for
   your compliance. Copyright (c) 2002 CIGNA
   

   
   
--
To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  Joseph E. Savard
  Principal
  Applied Information Technologies, Inc.
  Words are, of course, the most powerful drug used by mankind.
 - Kipling
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

 --
 --
 --
 CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
 immediately notify the sender by e-mail at the address shown.  This e-mail
 transmission may contain confidential information.  This information is
 intended only for the use of the individual(s) or entity to whom it is
 intended even if addressed incorrectly.  Please delete it from
 your files if
 you are not the intended recipient.  Thank you for your compliance.
 Copyright (c) 2002 CIGNA

 


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

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

RE: newbie - finding class files

2002-07-11 Thread Andy Eastham

Brian,

Tomcat looks for your classes under
Tomcatdir/webapps/yourapp/WEB-INF/classes and Tomcatdir/common/classes and
looks for your jars in Tomcatdir/webapps/yourapp/WEB-INF/lib ,
Tomcatdir/common/lib (and Tomcatdir/server/lib but you shouldn't put your
stuff in here)

Andy

 -Original Message-
 From: Brian Wolf [mailto:[EMAIL PROTECTED]]
 Sent: 11 July 2002 22:12
 To: Tomcat Users List
 Subject: newbie - finding class files


 Hi

 I am having problems with  servlets finding class files. On Windows 98
 I have the classpath and path environmental variables set to
 c:\jdk1.4\bin
 and c:\jdk1.4 respectively. The Servlet works fine when converted to a
 command line application.

 -Brian

 ---


 Error: 500
 Location: /examples/servlet/processOptions
 Internal Servlet Error:

 java.lang.NoClassDefFoundError:
 com/sun/java/util/collections/AbstractSequentialList
  at org.jdom.input.SAXBuilder.createContentHandler(SAXBuilder.java)
  at org.jdom.input.SAXBuilder.build(SAXBuilder.java)






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




RE: Need Ideas... big problem! (long)

2002-07-10 Thread Andy Eastham

Sorry, I haven't been listening to this thread but can't you just pass the
context as a parameter to the method?

Andy

 -Original Message-
 From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Sent: 10 July 2002 17:27
 To: [EMAIL PROTECTED]
 Subject: Re: Need Ideas... big problem! (long)


 I'm having some difficulty understanding the solution u guys
 provided me... maybe I explained my problem badly, so u aren't
 fully understanding it...

 but I have a question that is quite simple:
 Is it possible for a class (or Servlet) located in
 $tomcat_home\common\classes - that will be accessed from all
 webapps - to know from which context a JSP/Servlet called it?

 for example... I have a class A in common\classes and it has a
 method doSomething()... say I have a JSP
 $tomcat_home\webapps\test\1.jsp that looks something like:

 %@page import=A%
 %
 String x = A.doSomething();
 %

 so... would it be possible for A to know that when doSomething()
 was called, the context was test?


 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332

  [EMAIL PROTECTED] 10/07/02 12:12 
 A JSP is a servlet, so you shouldn't need to create another class derived
 from servlet to do the job.

 If your call is directly to a servlet, that servlet can use the code for
 parameter lookup itself as is.

 Regards.
 - Original Message -
 From: Christian J. Dechery  [EMAIL PROTECTED] 
 To:  [EMAIL PROTECTED] 
 Sent: Wednesday, July 10, 2002 2:33 PM
 Subject: Re: Need Ideas... big problem! (long)


 didn't work... I did a test here to see if this thing worked before
 implementing the Connection Dispatcher...
 the Servlet can't find the context in which the JSP that called it is...

 here's what I did:

 * created two classes TesteDispatcher and TesteCallDispatcher.
 TesteDispatcher is the Servlet, and TesteCallDispatcher is just a dummy
 class to make a call to this servlet...

 * I then placed both classes in $tomcat_home\common\classes

 * created a context called \teste1
 Context path=/teste1 docBase=teste1 debug=0 reloadable=true
 Parameter name=url value=URL do Contexto teste1 override=false/
 /Context

 * created a JSP called teste.jsp
 %@page import=dispatch.TesteCallDispatcher%

 %
 TesteCallDispatcher tcd = new TesteCallDispatcher();
 out.println(A URL para esse contexto é \+tcd.myContextURL()+\.);
 %

 when I execute it, nothing happens... there is a call in TesteDispatcher
 like this:
 ServletConfig sConf = getServletConfig(); -- this is returning NULL

 what did I do wrong? Or was it that I missunderstood ur solution,
 or even, u
 missunderstood my problem. :)

 thanks


 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332

  [EMAIL PROTECTED] 09/07/02 17:41 
 Or even simpler why not store it as a parameter in the
 server.xml. You will
 need to add the parameter to each of your contexts in the server.xml as
 follows:-

 Context path=/examples docBase=examples 
 ..
 Parameter name=db.url value=jdbc:postgres://localhost/mydb
 override=false/
 /Context

 And then in your servlet code you use the following to retrieve it (from
 your servlet):-

 getServletContext().getInitParameter(db.url)

 Regards.
 - Original Message -
 From: Christian J. Dechery  [EMAIL PROTECTED] 
 To:  [EMAIL PROTECTED] 
 Sent: Tuesday, July 09, 2002 8:47 PM
 Subject: RE: Need Ideas... big problem! (long)


 Sorry... but could u explain this a little furhter? I'm not familiar with
 JNDI.

 thanks

 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332

  [EMAIL PROTECTED] 09/07/02 16:41 
 Why don't you store the JDBC URL in JNDI and have DAO look it up
 dynamically

 Bob Kranson
 Software Technical Support Analyst
 UNIFACE and Optimal Products Technical Support
 U.S. Support Center 888-551-0404
 New Calls: [EMAIL PROTECTED]
 31440 Northwestern Hwy, Farmington Hills, MI 48334-2564
 (248)737-7300 x12702 Fax:(248)737-7574


  -Original Message-
  From: Christian J. Dechery [ mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 09, 2002 2:38 PM
  To: [EMAIL PROTECTED]
  Subject: Need Ideas... big problem! (long)
 
 
  I have a huge problem here... and I can't think of a simple
  solution for it, I'm hoping u guys can give some light. :)
 
  Let me first describe the environment here, then the problem.
 
  We have here a webapp called FAP (c:\tomcat\fap). It is
  composed of: /fap/*.jsp (like a hundred of them)
  /fap/WEB-INF/classes/finep (this package finep has a lot of
  subpackages) /fap/WEB-INF/classes/finep/DAO.class -- here
  the problem resides... /fab/lib/OracleDrivers.jar
 
  the class DAO provides the Connection to an Oracle database...
 
  so far, everything is fine... but here's the thing... this
  webapp gets replicated... the whole dir, because there are
  other instances of this system with small changes, and we
  didn't have the time to create a 

RE: Feasibility question

2002-07-08 Thread Andy Eastham

Iain,

I don't think session sharing is easy, but you can implement login using
cookies, which will be shared if they come from the same server (or domain
if they are domain cookies).

Another alternative is to pass a session id in the URL, and store session
information yourself in a server persistent object.  If you write a
singleton class and put it in a jar under Tomcat/common/lib, instances will
be shared between webapps (on Tomcat Version 4.0.3 anyway).

Of course, you can also write session information to a database.  When a
user logs in, generate a unique key, write this into a Logins table as the
primary key, plus other information like time of login, time of last access
etc. When you get a request, check the cookie id against this table to see
if the user is logged in and their session hasn't expired.  If so, update
the time of last access.

Of course, non of these are as easy or efficient as the off the shelf
sessions, but all are valid ways of achieving what you want.

All the best,

Andy

 -Original Message-
 From: Iain Downie [mailto:[EMAIL PROTECTED]]
 Sent: 08 July 2002 15:12
 To: [EMAIL PROTECTED]
 Subject: Feasibility question


 Hi List,

 relatively new to Tomcat, so excuse the possible repetition / naivety of
 this posting. We currently have an expanding web application
 running. We are
 thinking of dividing it up into more user-friendly chunks (different
 applications), allowing us to control each application more
 easily (stop one
 without affecting others etc.). My question is, is it possible to pass
 session info between many different applications?

 For example, these are our surveys, which we want as different apps.
 1. Login and generic registration
 2. Spring birdwatch
 3. Garden birdwatch
 4. Other survey and so on.
 They will all be attached to one Oracle installation.

 Currently, 1 and 2 are combined, so no problem with session info.
 But is it
 possible to transfer the user details between these apps, so that someone
 who is in Spring, can move over to Garden without having to login again?

 I'm not looking for the solution (for now), just to know if it is possible
 or not.

 Thanks, hope someone can suggest some pointers
 Iain


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




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




RE: Feasibility question

2002-07-08 Thread Andy Eastham

Iain,

By off the shelf sessions, I mean the ones you are already using  when you
don't need to share them across webapps (ie created by the servlet container
by request.getSession(true)).

Sorry for the confusion.

Andy

 -Original Message-
 From: Iain Downie [mailto:[EMAIL PROTECTED]]
 Sent: 08 July 2002 16:02
 To: Tomcat Users List
 Subject: Re: Feasibility question


 Andy,

  Of course, non of these are as easy or efficient as the off the shelf
  sessions, but all are valid ways of achieving what you want.

 if you can spare a minute, can you be more specific about these 'off the
 shelf' sessions?

 Thanks
 Iain


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





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




RE: tomcat won't load oracle driver

2002-06-25 Thread Andy Eastham

I think the problem ,ay be that 1.4 uses jdbc v3.  The oracle drivers
probably have require jdbc v2 hardcoded in them.  I remember this being
the case for a particular set of drivers, though I'm not absolutely sure it
was Oracle.  Are there any new ones from Oracle?

Andy

 -Original Message-
 From: Les Hughes [mailto:[EMAIL PROTECTED]]
 Sent: 25 June 2002 14:17
 To: 'Tomcat Users List'
 Subject: RE: tomcat won't load oracle driver


 Isnt classes111.zip for 1.1 VMs and classes12.zip for 1.2/1.3 VMs (Can't
 comment on 1.4)? Also, I think the rename to .jar and stick em in
 common/lib
 for TC4 (not sure where on TC3) will help.

  -Original Message-
  From: Marius Schwarz [mailto:[EMAIL PROTECTED]]
  Sent: 25 June 2002 14:02
  To: Tomcat Users List
  Subject: Re: tomcat won't load oracle driver
 
 
  Am 23-Jun-02 schrieb Keith Wannamaker:
 
   Someone mentioned on -dev that one has to remove the java*.sql
   classes from the oracle jdbc jar in order to work with jdk 1.4
   (since 1.4 began bundling these classes as well)
  he could extract them and place them in his classpath, that
  has to work.
 
  Gruss
  --
  Ihr POWER-NETZ®-Team
 
   POWER-NETZ®
  Full-Service-Provider 
 
  Service Tel:  01805 - 57 35 57 (DM 0,24/Min.)
  Service Fax: 01805 - 57 45 57 (DM 0,24/Min.)
 
  Online-Support:
  Support: 0190 - 15 11 15 (DM 1,21/Min)
  #http://Support.Power-Netz.de# (kostenlos)
  #http://Support.Power-Netz.com# (kostenlos)
 
 
  Power-Netz
  Reeperbahn 157
  20359 Hamburg
 
  #http://www.Power-Netz.de#
  #mailto:[EMAIL PROTECTED]#
 
 
  +=+
  --I N F O   C E N T E R--
  + Senden Sie eine leere e-mail an:
  + Providerwechsel: #mailto:[EMAIL PROTECTED]#
  + Daten/Preise Webspace: #mailto:[EMAIL PROTECTED]#
  + Reseller-Programm: #mailto:[EMAIL PROTECTED]#
  + Dedizierte Server: #mailto:[EMAIL PROTECTED]#
  + Adult/Erotikserver: #mailto:[EMAIL PROTECTED]#
  + Domainpreise: #mailto:[EMAIL PROTECTED]#
  + WebDesign: #mailto:[EMAIL PROTECTED]#
  + SSL-Zertifikate: #mailto:[EMAIL PROTECTED]#
  + Online-Datenbanken: #mailto:[EMAIL PROTECTED]#
  + Geschaeftsbedingungen: #mailto:[EMAIL PROTECTED]#
  + =+
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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




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




RE: Apache+Tomcat

2002-06-25 Thread Andy Eastham

Icaro,

Is it complaining that you've got IfModule statements where you should
have a virtual host section.  Perhaps you can't use IfModule here.?
I don't have any IfModule statements around the WebApp lines in my setup.

Just try removing lines 992 and 995 and I think it will stop complaining.
Of course, it wouldn't work anyway if it can't load mod_webapp.

Andy


 -Original Message-
 From: Icaro Tuicci [mailto:[EMAIL PROTECTED]]
 Sent: 25 June 2002 15:48
 To: [EMAIL PROTECTED]
 Subject: Apache+Tomcat


 I've this code in my httpd.conf :

 992 IfModule mod_webapp.c
 993 WebAppConnection conn  warp  localhost:8008
 994 WebAppDeploy examples  conn  /examples
 995 /IfModule

 what do i need configure in server.xml file ?

 I'm having this error when i try start my apache:

 [root@icaro /root]# /usr/local/apache_1.3.26/bin/apachectl startssl
 [Tue Jun 25 11:46:14 2002] [warn] Loaded DSO libexec/mod_webapp.so uses
 plain Apache 1.3 API, this module might crash under EAPI! (please
 recompile it with -DEAPI)
 [Tue Jun 25 11:46:14 2002] 8562 (wa_main.c:77) WebApp Library initializing
 [Tue Jun 25 11:46:14 2002] 8562 (wa_main.c:81) Initializing APR
 [Tue Jun 25 11:46:14 2002] 8562 (pr_info.c:66) INFO provider initialized
 [Tue Jun 25 11:46:14 2002] 8562 (pr_warp.c:62) WARP provider initialized
 [Tue Jun 25 11:46:14 2002] 8562 (wa_main.c:101) WebApp Library initialized
 [Tue Jun 25 11:46:14 2002] 8562 (wa_config.c:167) Created connection
 conn (Prov: warp Param: localhost:8008)
 Syntax error on line 994 of /usr/local/apache_1.3.26/conf/httpd.conf:
 Invalid virtual host name
 /usr/local/apache_1.3.26/bin/apachectl startssl: httpd could not
 be started

 Icaro




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




RE: MOD_JK Problem ?

2002-06-24 Thread Andy Eastham

Mark,

The Free for a reason comment is a too harsh.  Most Apache Foundation
Software is of a higher quality than most commercial software in my opinion.
I didn't want to start a flame war when I sent my original post.  My point
was that the Apache2 connectors area is significantly below the high quality
I've grown to expect from Apache Software.

Andy

 -Original Message-
 From: Faine, Mark [mailto:[EMAIL PROTECTED]]
 Sent: 24 June 2002 13:10
 To: 'Tomcat Users List'
 Subject: RE: MOD_JK Problem ?


 Nothing but agreement here, today will be the 5th business day that I will
 spend trying to figure out why Apache 2 and Tomcat 4 will not
 work together.
 I should be able to download them configure them and just go.
 Everyone says
 use Apache/Tomcat it's free, what they don't say is it's free for
 a reason.

 -Thanks,
 Mark

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 24, 2002 6:47 AM
 To: 'Tomcat Users List'
 Subject: RE: MOD_JK Problem ?



 Well said, and I agree 100%.  I spent 8 business days trying to
 get Apache 2
 with Tomcat 4 working, both with mod_webapp and mod_jk, before
 giving up and
 going back to Apache 1.3.  Granted, I am not experienced with
 tomcat, which
 may account for some of the delay, but your comments are right on
 the money.

 All due respect to the developers, but the idea that Apache 2,
 Tomcat 4, and
 the connectors are all separate projects, with little or no
 coordination (as
 far as I can tell) is really disappointing.  To me, that seems like a big
 mistake.

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 6:26 PM
 To: Tomcat Users List
 Subject: RE: MOD_JK Problem ?


 I think everyone who uses Tomcat should back off using Apache2
 until all the
 connectors and more so the documentation get beyond pre-alpha state.

 I'm a big fan of Apache and Tomcat, but I'm afraid the current
 state of the
 connectors SUCKS.

 I've held my tongue from writing this email for over a month, but now I
 can't help it. I've wasted days trying to get this working
 myself, and I've
 downgraded back to apache 1 again...

 Given that Apache Tomcat is the reference Servlet Implementation, I think
 that something needs to be done soon.  You basically can't use it with the
 world's most popular web server.  It seems to me that there is very little
 co-ordination between the separate Apache, Tomcat and Apache-Tomcat
 connectors projects. Just take a look under
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ - apart from
 coyote, there is rather a sad dearth of content.

 I'm very sorry to have written this message which I'm sure will
 offend some
 very hard working people.  I don't want to offend anyone, but I think
 someone needs to say this.  The Apache organisation has set and achieved
 some very high standards, and this area is significantly below par.

 Sorry.

 Andy





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




RE: Native library cannot be loaded twice

2002-06-24 Thread Andy Eastham

Andreasm,

By the way, the java library path is completely different from the system
library path.  I've got mine in
/usr/j2sdk1.4.0/jre/lib/i386/client/myLibrary.so , which is a default
library location for java (obviously you may have to amend the start of the
path slightly for your installation).  I guess the same path offset will
apply under windows - I disn't see which platform you're using.

Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 24 June 2002 11:33
 To: [EMAIL PROTECTED]
 Subject: SV: Native library cannot be loaded twice


 Hi

 Yes. But have you ensured that your native library and its dependends
 are in the java.library.path ?

 Hermod

 -Opprinnelig melding-
 Fra: Andreas Hirner [mailto:[EMAIL PROTECTED]]
 Sendt: 24. juni 2002 12:33
 Til: Tomcat Users List
 Kopi: [EMAIL PROTECTED]
 Emne: SV: Native library cannot be loaded twice


 Hi,

  Usatisfied link error means that it is not finding it or something
 it
  relies on.

  Hermod

 Ok. But in order to make sure I loaded the native library
 successfully, would you agree with me that I took the right steps? I
 am not that familiar with tomcat and appreciate any hint.

 Andreas



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


 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * * * * *

 This email with attachments is solely for the use of the individual or
 entity to whom it is addressed. Please also be aware that DnB cannot
 accept any payment orders or other legally binding correspondence with
 customers as a part of an email.

 This email message has been virus checked by the virus programs used
 in the DnB Group.

 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * * * * *


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





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




RE: MOD_JK Problem ?

2002-06-21 Thread Andy Eastham

I think everyone who uses Tomcat should back off using Apache2 until all the
connectors and more so the documentation get beyond pre-alpha state.

I'm a big fan of Apache and Tomcat, but I'm afraid the current state of the
connectors SUCKS.

I've held my tongue from writing this email for over a month, but now I
can't help it. I've wasted days trying to get this working myself, and I've
downgraded back to apache 1 again...

Given that Apache Tomcat is the reference Servlet Implementation, I think
that something needs to be done soon.  You basically can't use it with the
world's most popular web server.  It seems to me that there is very little
co-ordination between the separate Apache, Tomcat and Apache-Tomcat
connectors projects. Just take a look under
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ - apart from
coyote, there is rather a sad dearth of content.

I'm very sorry to have written this message which I'm sure will offend some
very hard working people.  I don't want to offend anyone, but I think
someone needs to say this.  The Apache organisation has set and achieved
some very high standards, and this area is significantly below par.

Sorry.

Andy

 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: 21 June 2002 14:03
 To: 'Tomcat Users List'
 Subject: RE: MOD_JK Problem ?


 Sounds like I need to back off from 4.1.3beta and go back to the
 last 4.0.x
 build.

 Thanks!

 Jerry Jalenak

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 7:58 AM
 To: 'Tomcat Users List'
 Subject: RE: MOD_JK Problem ?



 According to this thread, there seems to be a problem with mod_jk and the
 latest apache (2.0.39):

 http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html

 John Turner
 [EMAIL PROTECTED]
 http://www.aas.com


 -Original Message-
 From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 7:50 PM
 To: '[EMAIL PROTECTED]'
 Subject: MOD_JK Problem ?


 All,

 I've been trying to get the following configuration to work.

   Windows NT
   Apache 2.0.39
   Tomcat 4.1.3 beta

 Separately, I can see the Apache default 'Welcome' by going to
 http://localhost; in a similar vein I can see Tomcat's default
 'Welcome' by
 going to http://localhost:8080/index.jsp.  What I can't make work
 is seeing
 Tomcat's 'Welcome' page by going to http://localhost/index.jsp
 (or any other
 path for that matter!).  I've rebuilt the connectors for Tomcat, download
 the mod_jk.dll from www.acg-gmbh.de/mod_jk, and set up my
 workers.properties
 and mod_jk.conf files (similar to what I used under Tomcat 3.3.1
 - maybe the
 problem?)  Does anyone have any ideas why I can't see my JSP pages without
 needing to specify the port?

 Thanks in advance!

 Jerry

 This transmission (and any information attached to it) may be confidential
 and is intended solely for the use of the individual or entity to which it
 is addressed. If you are not the intended recipient or the person
 responsible for delivering the transmission to the intended recipient, be
 advised that you have received this transmission in error and
 that any use,
 dissemination, forwarding, printing, or copying of this information is
 strictly prohibited. If you have received this transmission in
 error, please
 immediately notify LabOne at (800)388-4675.



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


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





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




RE: mappings not working with mod_webapp.so, Apache 1.3.23, Tomcat 4.0.3

2002-05-24 Thread Andy Eastham

Ian,

Have you got addModule after loadModule in your httpd.conf file?  I've got:
# Tomcat / Catalina connector
LoadModule webapp_module modules/mod_webapp.so
AddModule   mod_webapp.c

then:
# Tomcat connections ANE 20010813
WebAppConnection conn  warp  127.0.0.1:8008
WebAppDeploy control   conn  /control
WebAppDeploy rtiadmin   conn  /rtiadmin

This works fine.
Hope this helps,

Andy

 -Original Message-
 From: Ian Zapczynski [mailto:[EMAIL PROTECTED]]
 Sent: 24 May 2002 13:34
 To: [EMAIL PROTECTED]
 Subject: mappings not working with mod_webapp.so, Apache 1.3.23, Tomcat
 4.0.3
 
 
 Hello all,
 
 I am unable to access my Tomcat web application via Apache.  When 
 I try, I get a 404 error and the Apache error log shows that it is
 looking for the application under my document root.
 
 I have:
 
 Apache version 1.3.23
 Tomcat 4.03
 mod_webapp.so from jakarta-tomcat-connectors-4.0.2-01-src
 Red Hat Linux 6.2
 
 Using mod_webapp.so, I am able to get Apache to connect to Tomcat 
 as I can see from the following in the apache_log.date.txt log upon
 Apache startup:
 
 2002-05-23 14:57:30 
 [org.apache.catalina.connector.warp.WarpConnector] Connection 
 from /127.0.0.1:3767 to /127.0.0.1:8008
 2002-05-23 14:57:30 
 [org.apache.catalina.connector.warp.WarpConnector] Connection 
 from /127.0.0.1:3768 to /127.0.0.1:8008
 2002-05-23 14:57:30 
 [org.apache.catalina.connector.warp.WarpConnector] Connection 
 from /127.0.0.1:3769 to /127.0.0.1:8008
 2002-05-23 14:57:30 
 [org.apache.catalina.connector.warp.WarpConnector] Connection 
 from /127.0.0.1:3770 to /127.0.0.1:8008
 2002-05-23 14:57:30 
 [org.apache.catalina.connector.warp.WarpConnector] Connection 
 from /127.0.0.1:3771 to /127.0.0.1:8008
 
 
 After these messages, I also see several messages of the type:
 
 2002-05-23 14:57:30 
 [org.apache.catalina.connector.warp.WarpConfigurationHandler] 
 Filter mappings (0)
 
 I'm not sure if this is typical or part of my problem.
 
 From my httpd.conf:
 
 LoadModule webapp_module libexec/mod_webapp.so
 
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy myapp  conn  /myapp
 WebAppInfo /webapp-info
 
 myapp is named exactly as it exists in my /home/tomcat/webapps 
 directory.  When I access either http://host/myapp or
 http://host/webapp-info, I receive a 404 error in the Apache 
 access log and the error log is looking for 
 /usr/local/apache/htdocs/myapp.
 
 Can anyone point out what I may be doing wrong?
 
 Thanks in advance!
 
 -Ian
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




RE: Internal JVM ZipClose exception (TC 4.0.1)

2002-05-21 Thread Andy Eastham

Yoav,

Signal 10 is a bus error on the solaris box. Basically this a is an internal
data communication error in the machine.

I think these errors can be software related, as well as hardware related.
First off, make sure you've got all the latest patches for your operating
system.  After that, check there are no loose cables in the disk system
inside the box.  Have you added any new disks recently?  After that, I'm
afraid you'll need help from a Sun expert.

Hope this helps,

Andy

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: 21 May 2002 14:20
 To: [EMAIL PROTECTED]
 Subject: Internal JVM ZipClose exception (TC 4.0.1)


 Hi,
 In the past weeks, we've gotten a couple of internal JVM exceptions
 running tomcat 4.0.1.  The relevant part of catalina.out is attached, as
 well as the JVM-generated error file.  As far as we can tell, this
 happens randomly.

 Any insight or information would be appreciated, as well as tips on
 further debugging this issue.  We're going to turn the server on with
 some debug things enabled in server.xml, hopefully that will shed some
 light...

 Stack traces attached.  Thanks in advance,

 Yoav Shapira
 ChemInformatics






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




RE: Tomcat 4 problem?--Graphics randomly fail to load

2002-05-21 Thread Andy Eastham

Scott,

If your server is running on Windows, I believe this is a common connector
issue.  It certainly happens to me with mod_webapp.  It doesn't happen on
the production Linux server though, so it's not an issue for me.

Andy

 -Original Message-
 From: Scott Judd [mailto:[EMAIL PROTECTED]]
 Sent: 21 May 2002 17:38
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4 problem?--Graphics randomly fail to load


 Hi everyone,

 I've encountered a bizarre problem with Tomcat 4 stand-alone,
 regarding the loading of graphics. Some of the graphics for my
 site wil load, while others will not, as if they weren't located
 on the server. After thorough experimentation with what's NOT
 happening, I'm forced to believe that it's the server that's
 causing the problem. I searched the tomcat list archives and
 couldn't find a similar report, so I'm hoping that someone out
 there has experienced this anomaly. Your feedback is much appreciated.

 Just to clarify what is NOT happening:

 1. The graphics (.gif format) are properly located on the server,
 in valid file formats, with correct permissions.

 2. When forcing the server to load a graphic, either by selecting
 Show Picture from the browser's context menu or accessing a
 single graphic through a URL request, the graphic loads correctly
 every time.

 3. This symptom may occur even on tiled images, such as body
 background graphics. Some of the tiles draw, while others do not.
 This symptom is present on IE5 and Netscape 6.2, tested on Win2k
 and MacOS X.

 4. The problem occurs randomly; it does not seem to be
 predictable/reproduceable. A graphic will load correctly in one
 instance and fail to load in another.
 _

 scott judd
 programmer
 the american education corporation




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




RE: HTTP Tunnelling problem?? Please help

2002-05-15 Thread Andy Eastham

Stuart,

You're extending Thread - everything that is mapped to a Tomcat request must
extend HttpServlet.  Tomcat is trying to cast your TestTunnel class to
HttpServlet, which is failing.

Andy

 -Original Message-
 From: Stuart Stephen [mailto:[EMAIL PROTECTED]]
 Sent: 15 May 2002 11:56
 To: Tomcat Users List
 Subject: HTTP Tunnelling problem?? Please help



 Hello all,

 I'm having problems trying to write a HttpTunnel for java objects
 in Tomcat.
 For some reason I'm getting a ClassCastException. I don't understand this.
 I've even tried forcing it as you can see in my code below. The exception
 that i'm getting is not very clear and i can't put my finger on it.

 I have attached the exception from Apache/Tomcat and the code for
 the tunnel
 at the bottom of this email. If you can help I would be very grateful.

 Regards,
 Stuart Stephen

 --
 --
 

 Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

 --
 --
 

 type Exception report

 message Internal Server Error

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

 exception

 java.lang.ClassCastException: TestTunnel
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.
 java:615)
   at
 org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerSe
 rvlet.java
 :396)
   at
 org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplication
 FilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterCh
 ain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.ja
 va:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardConte
 xtValve.ja
 va:201)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 66)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
 lve.java:2
 46)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
 e.java:164
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 66)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
 cherValve.
 java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 64)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
 e.java:170
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 64)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
 Valve.java
 :163)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
 ine.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
   at
 org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
   at java.lang.Thread.run(Unknown Source)

 ---

 import javax.servlet.*;
 import javax.servlet.http.*;
 import javax.servlet.ServletException.*;
 import javax.servlet.UnavailableException.*;
 import java.lang.Exception.*;
 import java.io.*;
 import java.util.*;
 import java.net.*;

 public class TestTunnel extends Thread {

   // applet connections
   ObjectOutputStream objOut = null;
   ObjectInputStream objIn = null;

   // chatserver connections
   Socket 

RE: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Andy Eastham

Jeff,

As a last resort, you could write the pdf to a temporary directory
accessible via apache, then send the browser a redirect to that file.  That
way, the actual PDF will be served by apache, not Tomcat.  You'll obviously
have to tidy up the generated PDFs periodically, although the temp file
methods in java.io.File should help. Also, java.util.Timer is useful for
writing jobs which do clean up tasks.

This is of course undesirable, but sometimes you just have to do what it
takes to make something work... :-(

Good luck,

Andy

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: 14 May 2002 17:01
 To: [EMAIL PROTECTED]
 Subject: REPOST: Problems serving PDF to Netscape browsers


 I've made no progress on this, so let's try again. My dynamic
 PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
 having problems with Netscape (ver 4 and 6) and the Acrobat
 (ver 4 and 5) plugin. I've tried this on various client machines.

 With both NS4 and NS6, I just get a blank screen when I request
 my dynamic PDF. They don't even show the Acrobat toolbar. The
 similarities end there.

 In NS4, the first request does not launch the AcroRd32.exe
 process. In fact, it fails to read the entire output of the
 servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
 to the logs. If I hit Reload, however, I get my PDF and the
 plugin works. According to the Apache logs, the first unsucessful
 request returns 6144 of 21212 bytes before the broken pipe. On
 the Reload, the Apache log shows TWO requests returning the
 full 21212 bytes and Netscape displays it in the plugin.

 In NS6, the first request DOES launch the plugin executable, but
 that's as far as it gets. Reload doesn't help. My Apache server
 reports the correct number of bytes for the full PDF request, so the
 data seems to be getting to the browser. No exceptions are thrown
 by Tomcat.

 In both NS4 and NS6, it works if I configure Acrobat to be launched
 as an external application instead of a plugin. But it is not a
 viable option to impose that configuration on our customers.

 I use a servlet mapping that sends requests for xxx.pdf to my
 servlet, thus the browser sees a .pdf filename. I also use
 setContentType(application/pdf). There are known problems
 with MSIE and unknown ContentLength with PDF so I create the
 PDF in a ByteArrayOutputStream so I can know and set the
 ContentLength before writing to response.getOutputStream().

 To take the dynamic nature of the PDF out of the equation, I was
 able to reproduce these problems --sometimes-- when serving static
 PDF files via Tomcat.


 - Original Message -
 From: Jeff Larsen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 09, 2002 1:44 PM
 Subject: Problems serving PDF to Netscape browsers


  I'm running out of hair to pull out here...
 
  My ultimate goal is to serve dynamically generated
  PDF documents generated with iText. I've got it working
  just fine with MSIE. However, I was just getting blank
  pages with Netscape (and it wasn't even showing the toolbar
  for Acrobat). With NS6 I could at least see that it started
  an AcroRd32.exe process, but NS4 didn't even get that far.
 
  So, I did some tests to rule out some variables. I grabbed
  a handful of pre-generated PDF files and stuck them on
  my Apache 1.3.23 server. All browsers could display the
  PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
  same files directly without going through Apache. MSIE worked,
  but both NS browsers gave a blank page with no Acrobat plugin
  toolbar. Again NS6 managed to start an Acrobat process, NS4
  didn't.
 
  My production environment is Apache 1.3.23 and Tomcat 4.0.3
  connected with mod_jk.
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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





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




RE: Problems serving PDF to Netscape browsers

2002-05-10 Thread Andy Eastham

Jeff,

I just tried this through my apache(1.3.20)-tomcat(4.0.4b1) connection using
warp, serving the document from a webapp directory, through apache.
Ironically, the pdf worked correctly in ns 4.72 and 6.2, but displayed as
binary in the browser in ie 6 (even though right clicking and viewing
properties said it was an adobe acrobat document.  When I put the same
file in the apache root, it displayed correctly in all browsers.

There's obviously something screwy going on, because I've checked the mime
type is correctly configured in both.

For reference, these are the headers that came back using a telnet
connection on port 80:

GET /control/test.pdf HTTP 1.1

HTTP/1.1 200 OK
Date: Fri, 10 May 2002 10:17:10 GMT
Server: Apache/1.3.20 (Win32)
Content-Type: application/pdf
Content-Length: 33747
ETag: 33747-1019121624574
Last-Modified: Thu, 18 Apr 2002 09:20:24 GMT
Connection: close

%PDF-1.2
%âãÏÓ



GET /test.pdf HTTP 1.1

HTTP/1.1 200 OK
Date: Fri, 10 May 2002 10:17:55 GMT
Server: Apache/1.3.20 (Win32)
Last-Modified: Thu, 18 Apr 2002 09:20:24 GMT
ETag: 0-83d3-3cbe8fd8
Accept-Ranges: bytes
Content-Length: 33747
Connection: close
Content-Type: application/pdf

%PDF-1.2
%âãÏÓ

Andy

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: 09 May 2002 22:33
 To: Tomcat Users List
 Subject: Re: Problems serving PDF to Netscape browsers


 The content type header is correctly set to application/pdf.
 I even tested with a UNIX command line utility called webgrab
 which dumps the entire server response (including headers) to stdout.
 I can't find anything wrong with the server output. And yes, I tried
 it on another box to make sure it wasn't my system's fault.

 It's got to be something that the Netscape plugin doesn't like. I just
 uninstalled Acrobat and did my dynamic PDF page with all three browsers.
 Without Acrobat, they all just prompted me to save it as a file. All three
 files that I generated with each browser are identical!!! And once Acrobat
 was re-installed, they all opened just fine in the stand-alone Acrobat.

 Jeff

 - Original Message -
 From: Andy Eastham [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, May 09, 2002 4:20 PM
 Subject: RE: Problems serving PDF to Netscape browsers


  Jeff,
 
  Do you know that the correct mime type is being sent back to
 the browser?
  If there is no known mime type, I believe that IE makes guesses
 about what
  program to launch a file with based on its extension, but NS 4
 doesn't seem
  to do this.
 
  If you haven't solved it yet, check the mime type being served,
 and check
  the associated programs for this mime type in Netscape.
 
  Otherwise, check the log file to see if the requests from IE and NS are
  different.  Is one http 1.0 and http 1.1?
 
  Sorry if I'm not offering any solutions, but hopefully these are some
  additional routes for investigation.
 
  Andy
 
   -Original Message-
   From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
   Sent: 09 May 2002 19:45
   To: [EMAIL PROTECTED]
   Subject: Problems serving PDF to Netscape browsers
  
  
   I'm running out of hair to pull out here...
  
   My ultimate goal is to server dynamically generated
   PDF documents generated with iText. I've got it working
   just fine with MSIE. However, I was just getting blank
   pages with Netscape (and it wasn't even showing the toolbar
   for Acrobat). With NS6 I could at least see that it started
   an AcroRd32.exe process, but NS4 didn't even get that far.
  
   So, I did some tests to rule out some variables. I grabbed
   a handful of pre-generated PDF files and stuck them on
   my Apache 1.3.23 server. All browsers could display the
   PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
   same files directly without going through Apache. MSIE worked,
   but both NS browsers gave a blank page with no Acrobat plugin
   toolbar. Again NS6 managed to start an Acrobat process, NS4
   didn't.
  
   My production environment is Apache 1.3.23 and Tomcat 4.0.3
   connected with mod_jk.
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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





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




RE: Problems serving PDF to Netscape browsers

2002-05-09 Thread Andy Eastham

Jeff,

Do you know that the correct mime type is being sent back to the browser?
If there is no known mime type, I believe that IE makes guesses about what
program to launch a file with based on its extension, but NS 4 doesn't seem
to do this.

If you haven't solved it yet, check the mime type being served, and check
the associated programs for this mime type in Netscape.

Otherwise, check the log file to see if the requests from IE and NS are
different.  Is one http 1.0 and http 1.1?

Sorry if I'm not offering any solutions, but hopefully these are some
additional routes for investigation.

Andy

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: 09 May 2002 19:45
 To: [EMAIL PROTECTED]
 Subject: Problems serving PDF to Netscape browsers


 I'm running out of hair to pull out here...

 My ultimate goal is to server dynamically generated
 PDF documents generated with iText. I've got it working
 just fine with MSIE. However, I was just getting blank
 pages with Netscape (and it wasn't even showing the toolbar
 for Acrobat). With NS6 I could at least see that it started
 an AcroRd32.exe process, but NS4 didn't even get that far.

 So, I did some tests to rule out some variables. I grabbed
 a handful of pre-generated PDF files and stuck them on
 my Apache 1.3.23 server. All browsers could display the
 PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
 same files directly without going through Apache. MSIE worked,
 but both NS browsers gave a blank page with no Acrobat plugin
 toolbar. Again NS6 managed to start an Acrobat process, NS4
 didn't.

 My production environment is Apache 1.3.23 and Tomcat 4.0.3
 connected with mod_jk.



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





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




RE: Servlet init() callin twice on startup. PLease help.

2002-04-29 Thread Andy Eastham

Ivan,

I had this problem.  I found it was caused when you use Tomcat Standalone
and Tomcat Apache (at least when using mod_webapp / warp).  I don't need
Tomcat Standalone, so I removed it from server.xml.  It seemed that a
separate class instance was being loaded for each (I tested 4.0.1 and
4.0.4b1).  If you need both access methods, you can at least share the same
instance by putting your classes in Tomcat/common/lib in a jar, rather than
webapps/appname/classes, although the init() method will still get called
twice.  You just have to write the init method so that it already knows it's
been called.

By the way, if you remove Tomcat standalone, to get Tomcat to call the init
method, you have to start Tomcat then restart Apache.

Personally, I'm not sure this behaviour is As Designed, but this fixed it
for me.  I, like most others it seems, find the whole area involving
connectors somewhat difficult to understand.  I don't see why different
connectors should involve different sets of class instances.

Hope this helps,

Andy

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: 29 April 2002 19:15
 To: 'Tomcat Users List'
 Subject: RE: Servlet init() callin twice on startup. PLease help.


 Do you have  the servlet mapped twice in web.xml?

 -Original Message-
 From: IvanLatysh [mailto:[EMAIL PROTECTED]]
 Sent: 29 April 2002 19:17
 To: Tomcat Apache
 Subject: Servlet init() callin twice on startup. PLease help.

 I have servlet that executing on start up.
 And when I see log - i can see that servlet was started twice.
 I need to start it one.
 Where I am wrong ?

 Sincerely yours, Ivan Latysh.
 [EMAIL PROTECTED]
 http://ivan.yourmail.com


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

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





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




RE: How do I pass commands like -verify to the VM in NT Service mode?

2002-04-23 Thread Andy Eastham

Alexander,

I don't run it as a service, but services are controlled under the registry
key
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services]

You should be able to find the relevant bit underneath here, where the
command line for starting up Tomcat will be evident.  It will either be a
direct command, or a bat file.

Andy

 -Original Message-
 From: Alexander Höglind [mailto:[EMAIL PROTECTED]]
 Sent: 23 April 2002 14:32
 To: Tomcat User
 Subject: How do I pass commands like -verify to the VM in NT Aervice
 mode?


 Hi,
 How do I pass commands like -verify to the VM in NT Service mode?
 Thanks,
 ALexander Höglind




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




  1   2   >