Re: Tomcat RMI and Eclipse

2003-04-02 Thread Chris Gokey
Sometimes it helps to recreate the exception... 

URL url = new URL(Group/Tomcat);
will result in:
java.net.MalformedURLException: no protocol: Group/Tomcat

My guess is that since you are getting an java.rmi.ServerException, the
exception is being generated on the server after the RMI connection
takes place.

So, it seems to me you need to find that string Group/Tomcat (e.g.,
grep for it) and find out where that is being placed into a URL.  

I have no idea why this would happen with Tomcat and not in eclipse
though. 

Chris



On Wed, 2003-04-02 at 20:41, Marc Chamberlin wrote:
 Hi, I have a puzzler and hope someone on this group might be able to give me a few 
 pointers as to where to look for a solution  I am running the Tomcat 4.1.18 
 server on a Win2000 machine and am developing a servlet which will act as an RMI 
 client and makes remote calls to another machine. For the most part this RMI link is 
 working, especially for remote method calls which pass and/or return simple Java 
 objects such as ints or strings. However, I have one method which I call that passes 
 and returns a more complex object (which has been declared as serializable) and it 
 is with this method that I am having a problem/puzzler. 
 
 For development purposes, I am using the Eclipse IDE with the Tomcat plugin. When I 
 run the Tomcat server from within the Eclipse IDE, and test out my servlet, 
 everything works fine including all RMI calls, and in particular the call to this 
 remote method to which I am passing and returning a more complex Java object!
 
 However, when I run the Tomcat server standalone, when the servlet makes this 
 particular RMI call, to this method passing and returning the complex Java object, I 
 get the following exception:
 
 java.rmi.ServerException: RemoteException occurred in server thread; nested 
 exception is: 
 
 java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
 
 java.net.MalformedURLException: no protocol: Group/Tomcat
 
 
 
 Note, the servlet has made a number of RMI calls to the remote object, successfully, 
 prior to making this particular call. Why this particular call works when Tomcat is 
 running within the Eclipse IDE and fails when Tomcat is running standalone has got 
 me puzzled! It does not matter whether I turn debugging on or off for the Tomcat 
 server either. I thought maybe there  could be some kind of race condition but these 
 calls all occur within the main servlet thread, so I don't understand how that could 
 be the case. Nor can I come up with anything that might be timing related I have 
 also checked all supporting Jar files and made sure they were the same...  Any ideas 
 on what else might be different between the Eclipse IDE and the Tomcat standalone 
 environment?
 
 Any thoughts appreciated   Marc
 
 
 
 -
 Do you think the software industry will ever make software
 that is as easy and reliable for a user to use 
 as the automobile industry makes a car easy and reliable
  for a user to drive?
 
 A man said unto the universe -  Sir, I exist!
 However, replied the universe  I do not see where that creates in me a sense of 
 an obligation.
   - Stephen Crane
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



configuring server.xml with a server with more than 1 IP address

2003-03-26 Thread Chris Gokey
In server.xml, I'm looking for a way to specify both the host name and
port used for the Server port=8005 shutdown=SHUTDOWN debug=0 
declaration.

Something like:
Server address=gcmddev.sesda.com port=8005 shutdown=SHUTDOWN
debug=0.
(similiar to how you would configure the HTTP connector)

I'm trying to launch two Tomcat servers both running under the same
ports but binding to different IPs on the same machine..  So, I need to
be able to specify the specific host address for the declaration above.

How can I do this?  I'm using Tomcat 4.03 under Redhat 8.

Thanks,
Chris

-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: SMTP Logger

2003-03-26 Thread Chris Gokey
I posted my latest implementation to this site, in case anyone else is
interested. 

http://home.attbi.com/~cgokey/java/logger/index.html

Seems to be working fairly well.

Thank you everyone for your comments.
Chris

On Tue, 2003-03-25 at 22:43, Craig R. McClanahan wrote:
 On Tue, 25 Mar 2003, Chris Gokey wrote:
 
  Date: 25 Mar 2003 21:47:43 -0500
  From: Chris Gokey [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: SMTP Logger
 
  Hi everyone,
 
  Back to this again.. Any help would be very appreciated.
 
  I'd created a custom logger that will email errors rather than log them
  to a file system.
 
  Unfortunately, if I add another Logger className=... declaration to
  server.xml, it will not use the existing Logger (FileLogger).  How can I
  make it use both?
 
 
 You can't do this directly -- there is at most one Logger element per
 Engine/Host/Context element.
 
  Optionally, I thought of extends the FileLogger, but it is declared
  final, so this won't work.
 
  How should I approach this?  Or maybe there is some class already part
  of Tomcat that can do what I'm looking for?
 
 
 You've got two basic choices:
 
 * Cut-n-paste the logic of FileLogger into your own SMTPLogger
   (and then add the email stuff)
 
 * Have your SMTPLogger create its own instance of FileLogger,
   and delegate the log calls to that after sending the emails.
 
  I'm using Tomcat 4.03 under Redhat 8.
 
  Thanks in advance.
  Chris
 
 Craig
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: configuring server.xml with a server with more than 1 IPaddress

2003-03-26 Thread Chris Gokey
This makes sense.  I'll use two different shutdown ports.

Thank for your response.
Chris


On Wed, 2003-03-26 at 18:15, Tim Funk wrote:
 The shutdown listerner always listens on localhost. So if you rn 
 multiple tomcat instances, you need to use different shutdown ports.
 
 If you want them accessible from the outside (which is a real bad idea), 
 use  plug proxy.
 
 -Tim
 
 Chris Gokey wrote:
  In server.xml, I'm looking for a way to specify both the host name and
  port used for the Server port=8005 shutdown=SHUTDOWN debug=0 
  declaration.
  
  Something like:
  Server address=gcmddev.sesda.com port=8005 shutdown=SHUTDOWN
  debug=0.
  (similiar to how you would configure the HTTP connector)
  
  I'm trying to launch two Tomcat servers both running under the same
  ports but binding to different IPs on the same machine..  So, I need to
  be able to specify the specific host address for the declaration above.
  
  How can I do this?  I'm using Tomcat 4.03 under Redhat 8.
  
  Thanks,
  Chris
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: SMTP Logger

2003-03-25 Thread Chris Gokey
Hi everyone,

Back to this again.. Any help would be very appreciated.  

I'd created a custom logger that will email errors rather than log them
to a file system.

Unfortunately, if I add another Logger className=... declaration to
server.xml, it will not use the existing Logger (FileLogger).  How can I
make it use both?

Optionally, I thought of extends the FileLogger, but it is declared
final, so this won't work.

How should I approach this?  Or maybe there is some class already part
of Tomcat that can do what I'm looking for?

I'm using Tomcat 4.03 under Redhat 8.

Thanks in advance.
Chris


On Sat, 2003-03-08 at 21:17, Chris Gokey wrote:
 Is there alternatives to the FileLogger class?
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true/
 
 I'd like intercept any errors in Tomcat and mail these errors to a
 particular person.
 
 If not, can I add another Logger by specifying an entry like the above
 in the server.xml and creating my custom Logger class?   Is that all
 that is necessary? 
 
 Thanks,
 Chris
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: SMTP Logger

2003-03-25 Thread Chris Gokey
Thanks Craig.  I just implemented your first appraoch.  Although
probably the second approach maybe a better choice.

Chris

On Tue, 2003-03-25 at 22:43, Craig R. McClanahan wrote:
 On Tue, 25 Mar 2003, Chris Gokey wrote:
 
  Date: 25 Mar 2003 21:47:43 -0500
  From: Chris Gokey [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: SMTP Logger
 
  Hi everyone,
 
  Back to this again.. Any help would be very appreciated.
 
  I'd created a custom logger that will email errors rather than log them
  to a file system.
 
  Unfortunately, if I add another Logger className=... declaration to
  server.xml, it will not use the existing Logger (FileLogger).  How can I
  make it use both?
 
 
 You can't do this directly -- there is at most one Logger element per
 Engine/Host/Context element.
 
  Optionally, I thought of extends the FileLogger, but it is declared
  final, so this won't work.
 
  How should I approach this?  Or maybe there is some class already part
  of Tomcat that can do what I'm looking for?
 
 
 You've got two basic choices:
 
 * Cut-n-paste the logic of FileLogger into your own SMTPLogger
   (and then add the email stuff)
 
 * Have your SMTPLogger create its own instance of FileLogger,
   and delegate the log calls to that after sending the emails.
 
  I'm using Tomcat 4.03 under Redhat 8.
 
  Thanks in advance.
  Chris
 
 Craig
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: SMTP Logger

2003-03-09 Thread Chris Gokey
I implemented a class that extends org.apache.catalina.Logger that
handles emailing log requests to a given recipient (those which are
errors anyhow). Here is my entry in server.xml:

  Logger className=org.md.catalina.logger.TomcatLogger
smtp=mail.attbi.com email=[EMAIL PROTECTED]/

I attached the small jar file as well which I put in
jakarta-tomcat/server/lib (more on that later)

Unfortunately, this doesn't work. 

Currently, the only place that I could copy this jar file to is
jakarta-tomcat/server/lib directory.  All other places that I tried it
to copy it, the server would complain during startup that it couldn't
find the necessary classes.

I see messages stating it is interacting with the class.  It does print:
setting smtp
setting email

But, it only calls this method
  public void log(String msg);
For some reason it won't call any of the other methods.  I see no error
messages and for whatever reason, it seems to have stopped the
FileLogger from logging anything.

So, I'm obviously doing something wrong :)  Any help would be
appreciated.  In the mean time, I'll keep digging... 

Thanks,
Chris


On Sat, 2003-03-08 at 21:17, Chris Gokey wrote:
 Is there alternatives to the FileLogger class?
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true/
 
 I'd like intercept any errors in Tomcat and mail these errors to a
 particular person.
 
 If not, can I add another Logger by specifying an entry like the above
 in the server.xml and creating my custom Logger class?   Is that all
 that is necessary? 
 
 Thanks,
 Chris
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



tomcat_logger.jar
Description: Zip archive
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: SMTP Logger

2003-03-09 Thread Chris Gokey
Sorry, I should mention that I'm using a dated version of Tomcat (4.03)
and Redhat 8.

Chris

On Sun, 2003-03-09 at 17:10, Chris Gokey wrote:
 I implemented a class that extends org.apache.catalina.Logger that
 handles emailing log requests to a given recipient (those which are
 errors anyhow). Here is my entry in server.xml:
 
   Logger className=org.md.catalina.logger.TomcatLogger
 smtp=mail.attbi.com email=[EMAIL PROTECTED]/
 
 I attached the small jar file as well which I put in
 jakarta-tomcat/server/lib (more on that later)
 
 Unfortunately, this doesn't work. 
 
 Currently, the only place that I could copy this jar file to is
 jakarta-tomcat/server/lib directory.  All other places that I tried it
 to copy it, the server would complain during startup that it couldn't
 find the necessary classes.
 
 I see messages stating it is interacting with the class.  It does print:
 setting smtp
 setting email
 
 But, it only calls this method
   public void log(String msg);
 For some reason it won't call any of the other methods.  I see no error
 messages and for whatever reason, it seems to have stopped the
 FileLogger from logging anything.
 
 So, I'm obviously doing something wrong :)  Any help would be
 appreciated.  In the mean time, I'll keep digging... 
 
 Thanks,
 Chris
 
 
 On Sat, 2003-03-08 at 21:17, Chris Gokey wrote:
  Is there alternatives to the FileLogger class?
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt
timestamp=true/
  
  I'd like intercept any errors in Tomcat and mail these errors to a
  particular person.
  
  If not, can I add another Logger by specifying an entry like the above
  in the server.xml and creating my custom Logger class?   Is that all
  that is necessary? 
  
  Thanks,
  Chris
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: SMTP Logger

2003-03-09 Thread Chris Gokey
Looks this this was just my imagination.  It was communicating fine with
my Logger class.  I've made some changes, so if anyone else is
interested, you can download the latest version from:
http://home.attbi.com/~cgokey/java/logger/index.html

Although, for some reason it is overriding the FileLogger, is it
possible to define two loggers (i.e., use the FileLogger and my custom
logger)?  I'd like for it to still use the FileLogger.

Thanks,
Chris

On Sun, 2003-03-09 at 17:10, Chris Gokey wrote:
 I implemented a class that extends org.apache.catalina.Logger that
 handles emailing log requests to a given recipient (those which are
 errors anyhow). Here is my entry in server.xml:
 
   Logger className=org.md.catalina.logger.TomcatLogger
 smtp=mail.attbi.com email=[EMAIL PROTECTED]/
 
 I attached the small jar file as well which I put in
 jakarta-tomcat/server/lib (more on that later)
 
 Unfortunately, this doesn't work. 
 
 Currently, the only place that I could copy this jar file to is
 jakarta-tomcat/server/lib directory.  All other places that I tried it
 to copy it, the server would complain during startup that it couldn't
 find the necessary classes.
 
 I see messages stating it is interacting with the class.  It does print:
 setting smtp
 setting email
 
 But, it only calls this method
   public void log(String msg);
 For some reason it won't call any of the other methods.  I see no error
 messages and for whatever reason, it seems to have stopped the
 FileLogger from logging anything.
 
 So, I'm obviously doing something wrong :)  Any help would be
 appreciated.  In the mean time, I'll keep digging... 
 
 Thanks,
 Chris
 
 
 On Sat, 2003-03-08 at 21:17, Chris Gokey wrote:
  Is there alternatives to the FileLogger class?
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt
timestamp=true/
  
  I'd like intercept any errors in Tomcat and mail these errors to a
  particular person.
  
  If not, can I add another Logger by specifying an entry like the above
  in the server.xml and creating my custom Logger class?   Is that all
  that is necessary? 
  
  Thanks,
  Chris
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



SMTP Logger

2003-03-08 Thread Chris Gokey
Is there alternatives to the FileLogger class?
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

I'd like intercept any errors in Tomcat and mail these errors to a
particular person.

If not, can I add another Logger by specifying an entry like the above
in the server.xml and creating my custom Logger class?   Is that all
that is necessary? 

Thanks,
Chris

-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: [OT] Re: is there a free ide that gets along well with tomcat?

2002-11-21 Thread Chris Gokey
Something also to remember if you are running Linux, you should download
the x86/GTK 2 version of it.  The MOTIF version is slow and buggy. 
Unfortunately this isn't obvious and they put the MOTIF version higher
in the list of download choices.  But we have also experimented with
both Eclipse, Netbeans, and Forte and most of our development group is
leaning towards eclipse as a IDE choice.

Chris

On Thu, 2002-11-21 at 21:08, Peter Lin wrote:
  
 eclipse does have a different model for the UI, but once I got over the difference, 
I found it better. Those who are used to Borland's style of UI will find eclipse a 
bit un-intuitive at first, but having used it quite a bit the last month I find it is 
actually much more productive.
 until I really sat down and tried it out, it was a bit weird at first. Once you get 
over the visual differences, the under lying framework is much more powerful and 
flexible than other java IDE's.  the plugin architecture allows one to write plugins 
for tomcat fairly easily.
  
 there seems to be a lot of momentum with eclipse and I personally prefer it to 
swing. The widget API seems better to me and is much more appealing than swing. there 
are several server plugins in the work for eclipse including websphere and couple 
other popular containers.
  
 peter
  Kwok Peng Tuck [EMAIL PROTECTED] wrote:eclipse needs a lot of work, but it 
looks like they are making progress. 
 Some of their stuff seems counter intuitive at the moment. So I'll take 
 a rain check on that ide.
 
 I'm suprised that Sun One Studio would need 512 mb of memory. Have you 
 done some module tuning yet? That might help you reduce memory usage.
 
 Tref Gare wrote:
 
 I'd be voting more like 512meg memory for Sun One Studio... but
 similarly.. it's pretty effective once you're up at that level of
 hardware.
 
 I've heard really good things about eclipse though.. when I get a chance
 I'm going to give it a try.
 
 T
 
 --
 Tref Gare
 Development Consultant
 Areeba
 Level 19/114 William St, Melbourne VIC 3000
 email: [EMAIL PROTECTED]
 phone: +61 3 9642 5553
 fax: +61 3 9642 1335
 website: http://www.areeba.com.au
 --
 This email is intended only for the use of the individual or entity
 named above and contains information that is confidential. No
 confidentiality is waived or lost by any mis-transmission. If you
 received this correspondence in error, please notify the sender and
 immediately delete it from your system. You must not disclose, copy or
 rely on any part of this correspondence if you are not the intended
 recipient. Any communication directed to clients via this message is
 subject to our Agreement and relevant Project Schedule. Any information
 that is transmitted via email which may offend may have been sent
 without knowledge or the consent of Areeba.
 --
 
 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, 22 November 2002 9:23 AM
 To: Tomcat Users List
 Subject: RE: is there a free ide that gets along well with tomcat?
 
 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:
  
 
 
 For additional commands, e-mail:
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 For additional commands, e-mail:
 
 
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
  
 
 
 
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]




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




RE: Tomcat and CLASSPATH

2002-11-05 Thread Chris gokey
Thanks Justin.   Yes, I think you understand me correctly.  I think the
easiest way to handle a problem like this is for Tomcat to provide
something
in WEB-INF/web.xml that would let me specify a external classpath
outside of the WEB-INF directory.  These classes would only be loaded
ONLY for this webapp :)  Until then, I think, maybe I'll figure out Ant
and see if it can
help with some of the housekeeping regarding keeping Tomcat's codebase
up to date whenever things change in the main codebase.  But, there is
something about the idea of redundant files exiting on the same machine
in two difference places that I don't like...

Thanks,
Chris

 -Original Message-
 From: tomcat-user-return-40065-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On Behalf Of
Justin
 Ruthenbeck
 Sent: Monday, November 04, 2002 7:21 PM
 To: Tomcat Users List
 Subject: RE: Tomcat and CLASSPATH
 
 
 Ahh... so (if I read this correctly), you've got your application
always
 installed on a system in a certain directory structure that is
independent
 of Tomcat.  Then there's some element that is a web application that
some
 clients get/activate.  You want to keep all your stuff together and
 optionally install Tomcat and run the webapp from the location you
 installed to.  At least in essence, is this close?
 
 If so, then I see the advantage during deployment of modifying Tomcat
to
 point to some external directory for resources.  Depending on the way
your
 app is organized (and how much you may be able to change that), your
other
 option is to define the docbase of your context (and the root context)
to
 point somewhere other than the webapps directory it points at by
default -
 -
 there are caveats to that depending on the version you're using.
You'll
 still have problems in that J2EE mandates the whole WEB-INF/*
directory
 structure, but you can probably massage things into place without too
much
 cross-pollination.  I think this addresses what was, once upon a time,
 your
 original question.  :)
 
 justin
 
 
 At 03:28 PM 11/4/2002, you wrote:
 
 Hi Justin.
 
 Thanks for your response.
 
 I'm not suggesting that Tomcat should be started up with some type of
 global classpath, rather I'm suggesting that the applications context
 for retrieving it classes does not necessarily need to be in
 WEB-INF/classes and WEB-INF/lib.  Instead, why not specify the
location
 for where it gathers its classes from WEB-INF/web.xml (atleast as a
 third option.) [and only for that context, it isn't a global web.xml]
 
 We package multiple versions of our software, some which is shipped
with
 Tomcat and some not..  So for those applications, it would be nice to
 have one place where classes reside and if we package it with Tomcat,
 then that web.xml just points to where our classes reside.  By having
 our java sources compiled directly to Jakarta-tomcat sort of couples
the
 two a little more closely than we'd like.  That is the reason why we
are
 forced to copy files now.
 
 Chris
 
   For simple applications in development, you're right -- there is
no
   technical roadblack that prevents you from comingling your source
and
   compiled classes, modifying Tomcat's classpath so that the default
   classloader finds them, and running your app.  However, no one (or
 very
   few) do this because
  
   (1) it's more complicated than compiling your classes directly to
   WEB-INF/classes,
   (2) deploying, versioning, and managing such a setup, especially
once
 you
   inevitably introduce multiple webapps, would be a collossal
nightmare,
 and
   perhaps most importantly
   (3) running each webapp in its own classloader (it classes loaded
from
   WEB-INF/classes) allows Tomcat to manage that application
 independently --
   for developers that means redeploying the application without
 restarting
   the server to catch changes that are made.
  
   Unless you have some overwhelming reason to sidestep this, I'd
suggest
   separating your source and compiled classes, using the directories
as
   intended, and -- especially if this is a commercial project --
using
 Ant
   to
   do all of the above.
  
   (And if you do see a reason otherwise, I'd love to hear it!)  :)
  
   justin
  
  
   At 02:21 PM 11/4/2002, you wrote:
   Consider you have a package structure:
   
   com.xyz.clients (/home/jdoe/java/src/com/xyz/client)
   com.xyz.server (/home/jdoe/java/src/com/xyz/server)
   com.xyz.util (/home/jdoe/java/src/com/xyz/util)
   
   Suppose you wanted to compile all these packages. Where would you
 direct
   the output of the generated classes after compiliation?  In order
for
   your Tomcat web application to be able to use the com.xyz.util
 classes
   they need to be either copied to WEB-INF/classes or your compiler
 needs
   to generate them and put them their right?
   
   Currently, we have the complier place the .class files with the
   packages.  So, if we want to make them available to Tomcat, we
would
   have to copy them to 

RE: Tomcat and CLASSPATH

2002-11-04 Thread Chris gokey

We never run Tomcat as root so this is not an issue.  So what is the
general pattern?  To add to your Ant build script to create a jar of
your application and place it in WEB-INF whenever the classes change?
This is fine for small applications but for development, but for very
large apps, it seems like pointing it to your general classes would be
much easier.   Or is it possible for Ant to do incremental changes to a
jar file?

Chris

 -Original Message-
 From: tomcat-user-return-39993-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On Behalf Of
Turner,
 John
 Sent: Monday, November 04, 2002 8:08 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH
 
 
 And in general, symbolic links from an application space running as
root
 is
 generally a bad idea.
 
 John
 
 
  -Original Message-
  From: Andreas Probst [mailto:andpro77;gmx.net]
  Sent: Saturday, November 02, 2002 10:48 AM
  To: Tomcat Users List
  Subject: Re: Tomcat and CLASSPATH
 
 
  Hi Chris,
 
  you could set your classpath in the tomcat startup script. But
  this is not recommended. There were messages a few days ago
  explaining this.
 
  Besides, it might not always be desirable that Tomcat knows when
  classes change...
 
  Andreas
 
 
  On 2 Nov 2002 at 7:52, Chris gokey wrote:
 
   Under UNIX it was very convenient for us to create a symbolic
   link from our WEB-INF/lib and WEB-INF/classes directory to the
   respective directories in our package that contained our jars and
   to the base directory of our package structure (for the purpose
   of setting up the CLASSPATH).  But unfortunately this approach is
   not platform independent and won't work under windows.  Is my
   only alternative to copy all these files to WEB-INF?   The
   advantage of symbolically linking is that any time these classes
   changed, Tomcat would automatically know about it. Is there
   another way to tell Tomcat where my claases are?  Possibly
   specify the CLASSPATH in my web.xml file?
  
   Thanks,
   Chris
  
  
  
 
 
  --
  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-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]




--
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 and CLASSPATH

2002-11-04 Thread Chris gokey
That's actually what I was referring to by the building an incremental
jar.  Maybe that isn't the right term, but I meant as the classes change
it will automatically update the jar with only the changed classes.  Of
course copying the changed class files to WEB-INF/classes would work
too.  I just do not know enough about Ant to know if it can capture the
classes that have changed and copy them.  Still seems like it would be
nice to be able to specify an external classpath in the web.inf file..
thus, you wouldn't need two copies of your classes and jars on the same
machine.   What does everyone else do?  Just have a script that does a
straight copy?

Chris

 -Original Message-
 From: tomcat-user-return-40012-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On Behalf Of Cox,
 Charlie
 Sent: Monday, November 04, 2002 10:40 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH
 
 can't you just have ant copy the modified classes(or jar) to WEB-INF?
 
  -Original Message-
  From: Chris gokey [mailto:cgokey;gcmd.nasa.gov]
  Sent: Monday, November 04, 2002 10:34 AM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat and CLASSPATH
 
 
 
  We never run Tomcat as root so this is not an issue.  So what is the
  general pattern?  To add to your Ant build script to create a jar of
  your application and place it in WEB-INF whenever the classes
change?
  This is fine for small applications but for development, but for
very
  large apps, it seems like pointing it to your general classes would
be
  much easier.   Or is it possible for Ant to do incremental
  changes to a
  jar file?
 
  Chris
 
   -Original Message-
   From: tomcat-user-return-39993-
   [EMAIL PROTECTED]
  [mailto:tomcat-user-return-
   [EMAIL PROTECTED]] On Behalf Of
  Turner,
   John
   Sent: Monday, November 04, 2002 8:08 AM
   To: 'Tomcat Users List'
   Subject: RE: Tomcat and CLASSPATH
  
  
   And in general, symbolic links from an application space running
as
  root
   is
   generally a bad idea.
  
   John
  
  
-Original Message-
From: Andreas Probst [mailto:andpro77;gmx.net]
Sent: Saturday, November 02, 2002 10:48 AM
To: Tomcat Users List
Subject: Re: Tomcat and CLASSPATH
   
   
Hi Chris,
   
you could set your classpath in the tomcat startup script. But
this is not recommended. There were messages a few days ago
explaining this.
   
Besides, it might not always be desirable that Tomcat knows when
classes change...
   
Andreas
   
   
On 2 Nov 2002 at 7:52, Chris gokey wrote:
   
 Under UNIX it was very convenient for us to create a symbolic
 link from our WEB-INF/lib and WEB-INF/classes directory to the
 respective directories in our package that contained
  our jars and
 to the base directory of our package structure (for the
purpose
 of setting up the CLASSPATH).  But unfortunately this
  approach is
 not platform independent and won't work under windows.  Is my
 only alternative to copy all these files to WEB-INF?   The
 advantage of symbolically linking is that any time these
classes
 changed, Tomcat would automatically know about it. Is there
 another way to tell Tomcat where my claases are?  Possibly
 specify the CLASSPATH in my web.xml file?

 Thanks,
 Chris



   
   
--
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-
   [EMAIL PROTECTED]
   For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
 
 
 
 
  --
  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-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]




--
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 and CLASSPATH

2002-11-04 Thread Chris gokey
Consider you have a package structure:

com.xyz.clients (/home/jdoe/java/src/com/xyz/client)
com.xyz.server (/home/jdoe/java/src/com/xyz/server)
com.xyz.util (/home/jdoe/java/src/com/xyz/util)

Suppose you wanted to compile all these packages. Where would you direct
the output of the generated classes after compiliation?  In order for
your Tomcat web application to be able to use the com.xyz.util classes
they need to be either copied to WEB-INF/classes or your compiler needs
to generate them and put them their right? 

Currently, we have the complier place the .class files with the
packages.  So, if we want to make them available to Tomcat, we would
have to copy them to Tomcat's WEB-INF directory.  If Tomcat would let us
point our classpath to /home/jdoe/java/src then that step would be
unnecessary.  It seems that I'm missing something rather obvious from
your answers.. :)

Chris

 -Original Message-
 From: tomcat-user-return-40023-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On Behalf Of
Turner,
 John
 Sent: Monday, November 04, 2002 11:39 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH
 
 
 We don't use symbolic links.  Everything is under Tomcat's directory
tree.
 
 What is the advantage to using symbolic links or an external
classpath?
 I'm
 not seeing what advantage you would get.
 
 John
 
  -Original Message-
  From: Chris gokey [mailto:cgokey;gcmd.nasa.gov]
  Sent: Monday, November 04, 2002 11:30 AM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat and CLASSPATH
 
 
  That's actually what I was referring to by the building an
incremental
  jar.  Maybe that isn't the right term, but I meant as the
  classes change
  it will automatically update the jar with only the changed
  classes.  Of
  course copying the changed class files to WEB-INF/classes would work
  too.  I just do not know enough about Ant to know if it can
  capture the
  classes that have changed and copy them.  Still seems like it would
be
  nice to be able to specify an external classpath in the web.inf
file..
  thus, you wouldn't need two copies of your classes and jars
  on the same
  machine.   What does everyone else do?  Just have a script that does
a
  straight copy?
 
  Chris
 
   -Original Message-
   From: tomcat-user-return-40012-
   [EMAIL PROTECTED]
  [mailto:tomcat-user-return-
   [EMAIL PROTECTED]] On
  Behalf Of Cox,
   Charlie
   Sent: Monday, November 04, 2002 10:40 AM
   To: 'Tomcat Users List'
   Subject: RE: Tomcat and CLASSPATH
  
   can't you just have ant copy the modified classes(or jar)
  to WEB-INF?
  
-Original Message-
From: Chris gokey [mailto:cgokey;gcmd.nasa.gov]
Sent: Monday, November 04, 2002 10:34 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat and CLASSPATH
   
   
   
We never run Tomcat as root so this is not an issue.  So
  what is the
general pattern?  To add to your Ant build script to
  create a jar of
your application and place it in WEB-INF whenever the classes
  change?
This is fine for small applications but for development, but for
  very
large apps, it seems like pointing it to your general
  classes would
  be
much easier.   Or is it possible for Ant to do incremental
changes to a
jar file?
   
Chris
   
 -Original Message-
 From: tomcat-user-return-39993-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On Behalf
Of
Turner,
 John
 Sent: Monday, November 04, 2002 8:08 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH


 And in general, symbolic links from an application space
running
  as
root
 is
 generally a bad idea.

 John


  -Original Message-
  From: Andreas Probst [mailto:andpro77;gmx.net]
  Sent: Saturday, November 02, 2002 10:48 AM
  To: Tomcat Users List
  Subject: Re: Tomcat and CLASSPATH
 
 
  Hi Chris,
 
  you could set your classpath in the tomcat startup script.
But
  this is not recommended. There were messages a few days ago
  explaining this.
 
  Besides, it might not always be desirable that Tomcat
  knows when
  classes change...
 
  Andreas
 
 
  On 2 Nov 2002 at 7:52, Chris gokey wrote:
 
   Under UNIX it was very convenient for us to create
  a symbolic
   link from our WEB-INF/lib and WEB-INF/classes
  directory to the
   respective directories in our package that contained
our jars and
   to the base directory of our package structure (for the
  purpose
   of setting up the CLASSPATH).  But unfortunately this
approach is
   not platform independent and won't work under
  windows.  Is my
   only alternative to copy all these files to WEB-INF?   The
   advantage of symbolically linking is that any time these
  classes
   changed, Tomcat would automatically know about

RE: Tomcat and CLASSPATH

2002-11-04 Thread Chris gokey

Hi Justin.

Thanks for your response.

I'm not suggesting that Tomcat should be started up with some type of
global classpath, rather I'm suggesting that the applications context
for retrieving it classes does not necessarily need to be in
WEB-INF/classes and WEB-INF/lib.  Instead, why not specify the location
for where it gathers its classes from WEB-INF/web.xml (atleast as a
third option.) [and only for that context, it isn't a global web.xml]

We package multiple versions of our software, some which is shipped with
Tomcat and some not..  So for those applications, it would be nice to
have one place where classes reside and if we package it with Tomcat,
then that web.xml just points to where our classes reside.  By having
our java sources compiled directly to Jakarta-tomcat sort of couples the
two a little more closely than we'd like.  That is the reason why we are
forced to copy files now.

Chris

 For simple applications in development, you're right -- there is no
 technical roadblack that prevents you from comingling your source and
 compiled classes, modifying Tomcat's classpath so that the default
 classloader finds them, and running your app.  However, no one (or
very
 few) do this because
 
 (1) it's more complicated than compiling your classes directly to
 WEB-INF/classes,
 (2) deploying, versioning, and managing such a setup, especially once
you
 inevitably introduce multiple webapps, would be a collossal nightmare,
and
 perhaps most importantly
 (3) running each webapp in its own classloader (it classes loaded from
 WEB-INF/classes) allows Tomcat to manage that application
independently --
 for developers that means redeploying the application without
restarting
 the server to catch changes that are made.
 
 Unless you have some overwhelming reason to sidestep this, I'd suggest
 separating your source and compiled classes, using the directories as
 intended, and -- especially if this is a commercial project -- using
Ant
 to
 do all of the above.
 
 (And if you do see a reason otherwise, I'd love to hear it!)  :)
 
 justin
 
 
 At 02:21 PM 11/4/2002, you wrote:
 Consider you have a package structure:
 
 com.xyz.clients (/home/jdoe/java/src/com/xyz/client)
 com.xyz.server (/home/jdoe/java/src/com/xyz/server)
 com.xyz.util (/home/jdoe/java/src/com/xyz/util)
 
 Suppose you wanted to compile all these packages. Where would you
direct
 the output of the generated classes after compiliation?  In order for
 your Tomcat web application to be able to use the com.xyz.util
classes
 they need to be either copied to WEB-INF/classes or your compiler
needs
 to generate them and put them their right?
 
 Currently, we have the complier place the .class files with the
 packages.  So, if we want to make them available to Tomcat, we would
 have to copy them to Tomcat's WEB-INF directory.  If Tomcat would let
us
 point our classpath to /home/jdoe/java/src then that step would be
 unnecessary.  It seems that I'm missing something rather obvious from
 your answers.. :)
 
 Chris
 
   -Original Message-
   From: tomcat-user-return-40023-
   [EMAIL PROTECTED]
 [mailto:tomcat-user-return-
   [EMAIL PROTECTED]] On Behalf Of
 Turner,
   John
   Sent: Monday, November 04, 2002 11:39 AM
   To: 'Tomcat Users List'
   Subject: RE: Tomcat and CLASSPATH
  
  
   We don't use symbolic links.  Everything is under Tomcat's
directory
 tree.
  
   What is the advantage to using symbolic links or an external
 classpath?
   I'm
   not seeing what advantage you would get.
  
   John
  
-Original Message-
From: Chris gokey [mailto:cgokey;gcmd.nasa.gov]
Sent: Monday, November 04, 2002 11:30 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat and CLASSPATH
   
   
That's actually what I was referring to by the building an
 incremental
jar.  Maybe that isn't the right term, but I meant as the
classes change
it will automatically update the jar with only the changed
classes.  Of
course copying the changed class files to WEB-INF/classes would
work
too.  I just do not know enough about Ant to know if it can
capture the
classes that have changed and copy them.  Still seems like it
would
 be
nice to be able to specify an external classpath in the web.inf
 file..
thus, you wouldn't need two copies of your classes and jars
on the same
machine.   What does everyone else do?  Just have a script that
does
 a
straight copy?
   
Chris
   
 -Original Message-
 From: tomcat-user-return-40012-
 [EMAIL PROTECTED]
[mailto:tomcat-user-return-
 [EMAIL PROTECTED]] On
Behalf Of Cox,
 Charlie
 Sent: Monday, November 04, 2002 10:40 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and CLASSPATH

 can't you just have ant copy the modified classes(or jar)
to WEB-INF?

  -Original Message-
  From: Chris gokey [mailto:cgokey;gcmd.nasa.gov]
  Sent: Monday, November 04, 2002 10:34 AM

Tomcat and CLASSPATH

2002-11-02 Thread Chris gokey
Under UNIX it was very convenient for us to create a symbolic link from
our WEB-INF/lib and WEB-INF/classes directory to the respective
directories in our package that contained our jars and to the base
directory of our package structure (for the purpose of setting up the
CLASSPATH).  But unfortunately this approach is not platform independent
and won't work under windows.  Is my only alternative to copy all these
files to WEB-INF?   The advantage of symbolically linking is that any
time these classes changed, Tomcat would automatically know about it.
Is there another way to tell Tomcat where my claases are?  Possibly
specify the CLASSPATH in my web.xml file?

Thanks,
Chris




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




Http10Interceptor: SocketException reading request, ignored

2002-03-04 Thread Chris Gokey

Hi...

Tomcat 3.3 has been behaving flawlessly for us recently until today,
suddenly we are getting:
Http10Interceptor: SocketException reading request, ignored

Any idea why one would get this error?

We recently had a publication go out regarding our system, so our load
is probably higher than normal.  Could this error be related to load?
Requests where taking  1 second and now can take as many as 10 seconds,
although this behavior appears to be intermittent.

Thanks,
Chris



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How do you debug a servlet?

2002-02-07 Thread Chris Gokey

I've got an application where we are getting large number of hits per
day and we are running into a problem with the Tomcat process suddenly
taking off and using a huge amount of CPU resources (as much as 98%
using top.)..  We are using Apache, mod_jk, and Tomcat 3.3 on Solaris 7.

Is there a way to attach a debugger to the Tomcat process and poke
around a try to figure out exactly is causing this problem? 

Unfortunately only under a high load will this problem occur and for
some reason production users seem to push the right buttons to make
these things happen, despite our load testing we have done on our
development machine :)

Any suggestions would be greatly appreciated

Chris






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_webapp.so problems

2001-10-19 Thread Chris Gokey

Chris Huisman wrote:
 Hello,
 
 I am having difficulties getting mod_webapp.so to work.  After adding
 LoadModule, and AddModule to the config file, and running apachectl
 configtest I get the following results:
 
 Syntax error on line 237 of /usr/local/etc/apache/httpd.conf:
 Cannot load /usr/local/libexex/apache/mod_webapp.so into server:
 Cannot open /usr/local/libexex/apache/mod_webapp.so

Looks like a mispelling and a messed up path...  It should be looking 
for mod_webapp in some place like  this:
/usr/local/apache/libexec/mod_webapp.so
^^^

Which requires a line something like this in your httpd.conf file:
LoadModule webapp_module libexec/mod_webapp.so
Chris


 
 I don't understand why this is occuring.  Does anybody know?
 
 Thanks,
 Chris.
 
 
 
 



-- 
  __
/\ 
 
   \
\_| Christopher D. Gokey, SSAI, NASA/GCMD  |
   | 18 Martin Road, Shelburne Falls, MA  01370 |
   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
   | [EMAIL PROTECTED] / http://gcmd.nasa.gov|
   | ICQ #52132386, AOL IM: chrisgokey  |
   |   _|_
\_/__/




/apr.h:265: #error Can not determine the proper size for apr_int64_t

2001-09-07 Thread Chris Gokey

Hi...  I'm back trying to compile mod_webapp.so for Solaris 7 this time 
(I was able to sucessfully compile it under Linux two days ago :) . 
 After having to install:
autoconf-2.50
libtool-1.3.5
m4-1.4

I was able to run ./support/buildconf.sh
and ./configure

I'm getting stuck trying to make it, I receive this error:

All done. Now you can issue make. Good luck.
  make

Compiling sources in 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/
jakarta-tomcat-connectors/webapp/lib...
make[1]: Entering directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat
-4.0-b7/jakarta-tomcat-connectors/webapp/lib'
Generating pr_warp_defs.h
Compiling wa_main.c
In file included from 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7
/jakarta-tomcat-connectors/webapp/apr/include/apr_general.h:61,
 from 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7
/jakarta-tomcat-connectors/webapp/include/wa.h:77,
 from wa_main.c:59:
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-connec
tors/webapp/apr/include/apr.h:198: #error Can not determine the proper 
size for
apr_int64_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-connec
tors/webapp/apr/include/apr.h:253: #error Can not determine the proper 
size for
ssize_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-connec
tors/webapp/apr/include/apr.h:256: #error Can not determine the proper 
size for
size_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-connec
tors/webapp/apr/include/apr.h:265: #error Can not determine the proper 
size for
apr_int64_t
make[1]: *** [wa_main.lo] Error 1
make[1]: Leaving directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-
4.0-b7/jakarta-tomcat-connectors/webapp/lib'
make: *** [local-all] Error 2

This is from the latest checkout of jakarata-tomcat-connectors/webapp 
and the apr (Sept 6)


Any idea why it is returning this error?

Thanks,
Chris




Re: /apr.h:265: #error Can not determine the proper size for apr_int64_t

2001-09-07 Thread Chris Gokey

Hi Pier,

I attached my

/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-co
nnectors/webapp/apr/include/apr.h file as you requested.

I'm not sure what you mean by checking out the latest HEAD. Before I tried
building this I did:

cd /home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-co
nnectors/webapp/
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co apr

So that should be the lastest right?  Or do you want me to do something different than 
that.  Since I put the apr in jakarta-tomcat-connectors/webapp, do I need to include 
in as a command-line option to configure the path to the apr?

Thanks,
Chris

Pier Fumagalli wrote:

Chris Gokey [EMAIL PROTECTED] wrote:

Hi...  I'm back trying to compile mod_webapp.so for Solaris 7 this time
(I was able to sucessfully compile it under Linux two days ago :) .
After having to install:
autoconf-2.50
libtool-1.3.5
m4-1.4

I was able to run ./support/buildconf.sh
and ./configure

I'm getting stuck trying to make it, I receive this error:

All done. Now you can issue make. Good luck.

make

Compiling sources in
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/
jakarta-tomcat-connectors/webapp/lib...
make[1]: Entering directory
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat
-4.0-b7/jakarta-tomcat-connectors/webapp/lib'
Generating pr_warp_defs.h
Compiling wa_main.c
In file included from
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7
/jakarta-tomcat-connectors/webapp/apr/include/apr_general.h:61,
   from
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7
/jakarta-tomcat-connectors/webapp/include/wa.h:77,
   from wa_main.c:59:
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:198: #error Can not determine the proper
size for
apr_int64_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:253: #error Can not determine the proper
size for
ssize_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:256: #error Can not determine the proper
size for
size_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:265: #error Can not determine the proper
size for
apr_int64_t
make[1]: *** [wa_main.lo] Error 1
make[1]: Leaving directory
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-
4.0-b7/jakarta-tomcat-connectors/webapp/lib'
make: *** [local-all] Error 2

This is from the latest checkout of jakarata-tomcat-connectors/webapp
and the apr (Sept 6)


Any idea why it is returning this error?


Yes, it seems that APR is somehow in trouble finding some of the default
definitions in length of storage pointers... Can you send over a copy of
your 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-co
nnectors/webapp/apr/include/apr.h file?

It seems that somehow configure is not recognizing those...

You might want to try also checking out the latest HEAD of apr out of CVS
and configuring your module running:

./configure --with-apr=where_you_checked_out_apr...

That might work...

Pier





#ifndef APR_H
#define APR_H

/**
 * @file include/apr.h
 * @brief APR APR Main Include
 */
/**
 * @defgroup APR APR Routines
 * @{
 */

/* So that we can use inline on some critical functions, and use
 * GNUC attributes (such as to get -Wall warnings for printf-like
 * functions).  Only do this in gcc 2.7 or later ... it may work
 * on earlier stuff, but why chance it.
 *
 * We've since discovered that the gcc shipped with NeXT systems
 * as cc is completely broken.  It claims to be __GNUC__ and so
 * on, but it doesn't implement half of the things that __GNUC__
 * means.  In particular it's missing inline and the __attribute__
 * stuff.  So we hack around it.  PR#1613. -djg
 */
#if !defined(__GNUC__) || __GNUC__  2 || \
(__GNUC__ == 2  __GNUC_MINOR__  7) ||\
defined(NEXT)
#define APR_INLINE
#define __attribute__(__x)
#define APR_HAS_INLINE  0
#else
#define APR_INLINE __inline__
#define APR_HAS_INLINE  1
#endif

#define APR_HAVE_ARPA_INET_H 1
#define APR_HAVE_CONIO_H 0
#define APR_HAVE_CRYPT_H 1
#define APR_HAVE_CTYPE_H 1
#define APR_HAVE_DIRENT_H1
#define APR_HAVE_ERRNO_H 1
#define APR_HAVE_FCNTL_H 1
#define APR_HAVE_IO_H0
#define APR_HAVE_LIMITS_H1
#define APR_HAVE_NETDB_H 1
#define APR_HAVE_NETINET_IN_H1
#define APR_HAVE_NETINET_TCP_H   1
#define APR_HAVE_PTHREAD_H   0
#define APR_HAVE_STDARG_H1
#define APR_HAVE_STDIO_H 1
#define APR_HAVE_STDINT_H1
#define APR_HAVE_STDLIB_H1
#define APR_HAVE_SIGNAL_H1
#define APR_HAVE_STRING_H1
#define APR_HAVE_STRINGS_H   1
#define APR_HAVE_SYS_SENDFILE_H  1
#define APR_HAVE_SYS_SIGNAL_H1
#define APR_HAVE_SYS_SOCKET_H1

Re: /apr.h:265: #error Can not determine the proper size for apr_int64_t

2001-09-07 Thread Chris Gokey

After doing:
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co -r HEAD apr
(inside of jakarta-tomcat-connectors/webapps)

I attached the apr/include/apr.h file in this email.

Here are the error messages I received.

---

All done. Now you can issue make. Good luck.
 
  make

Compiling sources in 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/
jakarta-tomcat-connectors/webapp/apr...
make[1]: Entering directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat
-4.0-b7/jakarta-tomcat-connectors/webapp/apr'
Making all in strings
make[2]: Entering directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat
-4.0-b7/jakarta-tomcat-connectors/webapp/apr/strings'
make[3]: Entering directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat
-4.0-b7/jakarta-tomcat-connectors/webapp/apr/strings'
/bin/sh 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomca
t-connectors/webapp/apr/libtool --silent --mode=compile gcc
-DHAVE_CONFIG_H -
DSOLARIS2=7 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include 
-I../include/
arch/unix  -c apr_cpystrn.c  touch apr_cpystrn.lo
In file included from apr_cpystrn.c:55:
../include/apr.h:198: #error Can not determine the proper size for 
apr_int64_t
../include/apr.h:253: #error Can not determine the proper size for ssize_t
../include/apr.h:256: #error Can not determine the proper size for size_t
../include/apr.h:265: #error Can not determine the proper size for 
apr_int64_t
make[3]: *** [apr_cpystrn.lo] Error 1
make[3]: Leaving directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-
4.0-b7/jakarta-tomcat-connectors/webapp/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-
4.0-b7/jakarta-tomcat-connectors/webapp/apr/strings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-
4.0-b7/jakarta-tomcat-connectors/webapp/apr'
make: *** [apr-all] Error 2

--

If I try specifying what the path of the apr during configure, I get this:

  ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=`pwd`/apr
checking for test... /bin/test
checking for true... /bin/true
checking for echo... /bin/echo
checking for grep... /bin/grep
checking for cat... /bin/cat
checking for sed... /bin/sed
checking for rm... /bin/rm
checking sources directory... 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-connectors/webapp
checking debugging flags... disabled
checking Java support... disabled
checking Tomcat 4.0 directory... not required
checking if apxs is working... ok
setting target module to... 
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-connectors/webapp/apache-1.3
checking APR directory... configure: error: Cannot find APR buildconf 
program in /usr/local/apache_1.3.17
 

Why is it looking in /usr/local/apche_1.3.17 for buildconf when I 
specify the apr in a completely different directory?

Take care,
Chris


Pier Fumagalli wrote:

Chris Gokey [EMAIL PROTECTED] wrote:

Hi...  I'm back trying to compile mod_webapp.so for Solaris 7 this time
(I was able to sucessfully compile it under Linux two days ago :) .
After having to install:
autoconf-2.50
libtool-1.3.5
m4-1.4

I was able to run ./support/buildconf.sh
and ./configure

I'm getting stuck trying to make it, I receive this error:

All done. Now you can issue make. Good luck.

make

Compiling sources in
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/
jakarta-tomcat-connectors/webapp/lib...
make[1]: Entering directory
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat
-4.0-b7/jakarta-tomcat-connectors/webapp/lib'
Generating pr_warp_defs.h
Compiling wa_main.c
In file included from
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7
/jakarta-tomcat-connectors/webapp/apr/include/apr_general.h:61,
   from
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7
/jakarta-tomcat-connectors/webapp/include/wa.h:77,
   from wa_main.c:59:
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:198: #error Can not determine the proper
size for
apr_int64_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:253: #error Can not determine the proper
size for
ssize_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:256: #error Can not determine the proper
size for
size_t
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0-b7/jakarta-tomcat-conn
ec
tors/webapp/apr/include/apr.h:265: #error Can not determine the proper
size for
apr_int64_t
make[1]: *** [wa_main.lo] Error 1
make[1]: Leaving directory
`/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-
4.0-b7/jakarta-tomcat-connectors/webapp/lib'
make: *** [local-all] Error 2

This is from the latest checkout of jakarata-tomcat

Re: mod_webapp.so: invalid ELF header

2001-09-05 Thread Chris Gokey

Ok, I checked out the source again for
jakarta-tomcat-connectors/webapps and apr and now I get this error.

[cgokey@cgokey webapp]$ ./support/buildconf.sh
[cgokey@cgokey webapp]$ ./configure --with-apxs=/usr/local/apache/bin/apxs
creating cache ./config.cache
checking for test... /usr/bin/test
checking for true... /bin/true
checking for echo... /bin/echo
checking for grep... /bin/grep
checking for cat... /bin/cat
checking for sed... /bin/sed
checking for rm... /bin/rm
checking sources directory...
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connectors/webapp
checking debugging flags... disabled
checking Java support... disabled
checking Tomcat 4.0 directory... not required
checking if apxs is working... ok
setting target module to...
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat/jakarta-tomcat-connectors/webapp/apache-1.3
checking APR directory... configure: error: Cannot find APR sources
directory {SRCDIR}/apr

The apr does exist in my jakarta-tomcat-connectors/webapps
directory, so I'm not sure why it isn't finding it.  It did yesterday :)

Thanks for you help,
Chris

On Wed, 5 Sep 2001, jean-frederic clere wrote:

 Clere, Jean-Frederic wrote:
 
  Chris Gokey wrote:
  
   I attached the output of the build process, although I don't see any
   errors..  But that doesn't mean anything :)
 
  The error is in the Makefile - I will fix it -

 I have fixed it.

 
  
   Thanks for responding and taking a look.
  
   Chris
  
   On Wed, 5 Sep 2001, Pier Fumagalli wrote:
  
Chris Gokey [EMAIL PROTECTED] wrote:
   
 I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
 trying to install the mod_webapp connector for apache. I've been able to
 cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
 build it.  When I copy the
 apache-1.3/mod_webapp.so file into my
 apache/libexec directory and try to start apache, I get this error:

 [root@cgokey bin]# ./apachectl start
 Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
 Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
 /usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
 ./apachectl start: httpd could not be started

 If I do a file on mod_webapp.so, I get this:
 [cgokey@cgokey apache-1.3]$ file  mod_webapp.so
 mod_webapp.so: Bourne shell script text

 Any idea why this module is not building properly?
   
Nope, if you don't send an output of the build process :)
   
Pier
   
  
   --
__
   /\ \
   \_| Christopher D. Gokey, SSAI, NASA/GCMD  |
 | 18 Martin Road, Shelburne Falls, MA  01370 |
 | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
 | [EMAIL PROTECTED] / http://gcmd.nasa.gov|
 | ICQ #52132386, AOL IM: chrisgokey  |
 |   _|_
  \_/__/
  
 

 Name: output2.txt
  output2.txtType: Plain Text (TEXT/plain)
 Encoding: BASE64


-- 
 __
/\ \
\_| Christopher D. Gokey, SSAI, NASA/GCMD  |
  | 18 Martin Road, Shelburne Falls, MA  01370 |
  | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
  | [EMAIL PROTECTED] / http://gcmd.nasa.gov|
  | ICQ #52132386, AOL IM: chrisgokey  |
  |   _|_
   \_/__/




mod_webapp.so: invalid ELF header

2001-09-04 Thread Chris Gokey

I've downloaded and installed the binary for Tomcat 4.0-b7.  I'm now
trying to install the mod_webapp connector for apache. I've been able to
cvs checkout the latest jakarta-tomcat-connectors/webapps and the apr and
build it.  When I copy the
apache-1.3/mod_webapp.so file into my
apache/libexec directory and try to start apache, I get this error:

[root@cgokey bin]# ./apachectl start
Syntax error on line 993 of /usr/local/apache_1.3.17/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.17/libexec/mod_webapp.so into server:
/usr/local/apache_1.3.17/libexec/mod_webapp.so: invalid ELF header
./apachectl start: httpd could not be started

If I do a file on mod_webapp.so, I get this:
[cgokey@cgokey apache-1.3]$ file  mod_webapp.so
mod_webapp.so: Bourne shell script text

Any idea why this module is not building properly?

Chris

-- 
 __
/\ \
\_| Christopher D. Gokey, SSAI, NASA/GCMD  |
  | 18 Martin Road, Shelburne Falls, MA  01370 |
  | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
  | [EMAIL PROTECTED] / http://gcmd.nasa.gov|
  | ICQ #52132386, AOL IM: chrisgokey  |
  |   _|_
   \_/__/





servlet mapping not recognized

2001-09-03 Thread Chris Gokey

HI everyone,

I just downloaded and installed Tomcat 3.2.3 and trying to setup a servlet
mapping.  For some reason it does not recognize my mapping at all.   Here
is what I added to web.xml:

 servlet
 servlet-namePyServlet/servlet-name
 servlet-classorg.python.util.PyServlet/servlet-class
 init-param
 param-namepython.home/param-name
 param-value/home/mddevel/MD8_Devel/MD8/packages/jython/param-value
 /init-param
 /servlet
 servlet-mapping
 servlet-namePyServlet/servlet-name
 url-pattern*.py/url-pattern
 /servlet-mapping

Instead of mapping the .py file through the PyServlet class, it will just
display the python source as a normal text file...??   I checked the
jasper.log and the servlet.log, no error messages at all during startup or
when I was trying to execute this .py file.

I've had this working with previous versions (3.0) and future versions
(4.01b1) but can't seem to make it work with this version.

Has anyone else experience similiar problems with servlet mappings and
gotten this to work?

Thanks,
Chris


-- 
 __
/\ \
\_| Christopher D. Gokey, SSAI, NASA/GCMD  |
  | 18 Martin Road, Shelburne Falls, MA  01370 |
  | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
  | [EMAIL PROTECTED] / http://gcmd.nasa.gov|
  | ICQ #52132386, AOL IM: chrisgokey  |
  |   _|_
   \_/__/