Problem deploying an app

2003-04-04 Thread Frank Garber
Hi,

I'm using Tomcat (TC) 4.1.18 with Apache 2.0.43 with several virtual hosts. 
I'm able to serve up plain old jsp files okay, but when I try to reference any
of the java code I've written I get a message like:

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null

The problem is my app 'classes' directory is not in the classpath.  How do I
get TC to recognize my app?  I've used the TC manager application to install it
and it shows as being loaded.  When I stop / start TC, my app is gone!  How do
I make it persistent?  Where does the manager app keep its data?  I 'thought' I
had added it to the server.xml file.

Thanks in advance for your help,

Frank

=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



Not seeing new classes

2003-04-04 Thread Frank Garber
I'm playing with the Tomcat example jsp files, specifically the date.jsp file.

I can add a statement like:  %= new java.util.Date() % br /
to kick out the current date as a string, but when I try to access a java class
I've written, I get a 'cannot resolve symbol'.  The error happens as the jsp is
being compiled.

Here's the offending statement:
%= Yada.getString() % br /

Here's the class definition:
public class Yada {
public static String getString() {
return Hello from Yada.getString();
}
}

The Yada.java and Yada.class file lives in the WEB-INF\classes directory.

The WEB-INF\classes directory is in the classpath as per the screen dump I'm
getting.

Frank

=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Yes, I did a 'Reload' and a Stop/Start but neither helped.

This seems like a no brainer but the heck if I can get it to work.  Can you try
doing the same on your sytem?

Thanks,

Frank

--- Jan Behrens [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Frank Garber [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 04, 2003 10:06 PM
  To: [EMAIL PROTECTED]
  Subject: Not seeing new classes
 
 
  I'm playing with the Tomcat example jsp files, specifically the
  date.jsp file.
 
  I can add a statement like:  %= new java.util.Date() % br /
  to kick out the current date as a string, but when I try to access
  a java class
  I've written, I get a 'cannot resolve symbol'.  The error happens
  as the jsp is
  being compiled.
 
  Here's the offending statement:
  %= Yada.getString() % br /
 
  Here's the class definition:
  public class Yada {
  public static String getString() {
  return Hello from Yada.getString();
  }
  }
 
  The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
 
  The WEB-INF\classes directory is in the classpath as per the screen dump
 I'm
  getting.
 
  Frank
 
  =
 
 Hi Frank,
 
 just asking a maybe stupid question... but have you reloaded the examples
 webapp through the webapp-manager?
 
 regards, Jan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Brian,

Thanks for the reply.

No, I didn't have an import because I'm using the default package (that is no
package statement).  

I did add your import statement below, minus the innovtech.util.*, and it had
no affect.

If you have any other thoughts, please, please let me know.  I've been
struggling with this for awhile...

Thanks,

Frank
--- Brian Menke [EMAIL PROTECTED] wrote:
 Does your JSP page include the right import declaration, something like
 this:
 
 %@ page contentType=text/html; charset=iso-8859-1 language=java
 import=java.sql.*,innovtech.util.*%
 
 Note the import attributte.
 
 -Brian
 
 
 -Original Message-
 From: Jan Behrens [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 04, 2003 12:09 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Not seeing new classes
 
 
  -Original Message-
  From: Frank Garber [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 04, 2003 10:06 PM
  To: [EMAIL PROTECTED]
  Subject: Not seeing new classes
 
 
  I'm playing with the Tomcat example jsp files, specifically the
  date.jsp file.
 
  I can add a statement like:  %= new java.util.Date() % br /
  to kick out the current date as a string, but when I try to access
  a java class
  I've written, I get a 'cannot resolve symbol'.  The error happens
  as the jsp is
  being compiled.
 
  Here's the offending statement:
  %= Yada.getString() % br /
 
  Here's the class definition:
  public class Yada {
  public static String getString() {
  return Hello from Yada.getString();
  }
  }
 
  The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
 
  The WEB-INF\classes directory is in the classpath as per the screen dump
 I'm
  getting.
 
  Frank
 
  =
 
 Hi Frank,
 
 just asking a maybe stupid question... but have you reloaded the examples
 webapp through the webapp-manager?
 
 regards, Jan
 
 
 -
 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]
 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Your a live saver!  That did it!!  Just moving it into the util package solved
the problem

THanks

--- PELOQUIN,JEFFREY (HP-Boise,ex1) [EMAIL PROTECTED] wrote:
 Is you classes in a package?
 
 such as com.frank.yada
 
 It was my understanding from other posts I have seen on this list, that
 Tomcat will not pick up classes not in a package
 
 -Original Message-
 From: Frank Garber [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 04, 2003 1:21 PM
 To: Tomcat Users List
 Subject: RE: Not seeing new classes
 
 
 Yes, I did a 'Reload' and a Stop/Start but neither helped.
 
 This seems like a no brainer but the heck if I can get it to work.  Can you
 try
 doing the same on your sytem?
 
 Thanks,
 
 Frank
 
 --- Jan Behrens [EMAIL PROTECTED] wrote:
   -Original Message-
   From: Frank Garber [mailto:[EMAIL PROTECTED]
   Sent: Friday, April 04, 2003 10:06 PM
   To: [EMAIL PROTECTED]
   Subject: Not seeing new classes
  
  
   I'm playing with the Tomcat example jsp files, specifically the
   date.jsp file.
  
   I can add a statement like:  %= new java.util.Date() % br /
   to kick out the current date as a string, but when I try to access
   a java class
   I've written, I get a 'cannot resolve symbol'.  The error happens
   as the jsp is
   being compiled.
  
   Here's the offending statement:
   %= Yada.getString() % br /
  
   Here's the class definition:
   public class Yada {
 public static String getString() {
 return Hello from Yada.getString();
 }
   }
  
   The Yada.java and Yada.class file lives in the WEB-INF\classes
 directory.
  
   The WEB-INF\classes directory is in the classpath as per the screen dump
  I'm
   getting.
  
   Frank
  
   =
  
  Hi Frank,
  
  just asking a maybe stupid question... but have you reloaded the examples
  webapp through the webapp-manager?
  
  regards, Jan
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 =
 __
 
 My full time permanent email address is always: [EMAIL PROTECTED]
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online, calculators, forms, and more
 http://tax.yahoo.com
 
 -
 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]
 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Your a live saver!  That did it!!  Just moving it into the util package solved
the problem

THanks
--- Jan Behrens [EMAIL PROTECTED] wrote:
 Hi Frank. just another thought...
 
 do the following:
 
 your class Yada:
 
 package myYada;
 
 public class Yada {
   public static String getString() {
   return Hello from Yada.getString();
   }
 }
 
 store  compile that in:
 
 WEB-INF\classes\myYada\
 
 add the following to your date.jsp instead of %@ page session=false%
 right
 at the top:
 
 [EMAIL PROTECTED] contentType=text/html
   session=false
   import=myYada.*%
 
 and reload the examples webapp
 
 HTH jan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



Worker found, but not doing any work?

2003-03-20 Thread Frank Garber
I'm using Tomcat 4.1.18 with Apache 2.0.44.  When I browse directly to the
Tomcat examples all the servlets and JSPs work fine.  I'm having trouble
accessing the examples through apache.

I've found numerous examples on the web for setup.  Each is different and
unfortunately, none of them has worked!  I've gotten to the point with I can
display all the static content and can see from the mod-_jk.log file that I
have found a worker.  Its just the worker is returning 404 and I don't know
why??

Any thoughts would be GREATLY appreciated.

Thanks,

F

[Thu Mar 20 08:58:15 2003]  [jk_uri_worker_map.c (477)]: Attempting to map URI
'/jsp/dates/date.jsp'
[Thu Mar 20 08:58:15 2003]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Thu Mar 20 08:58:15 2003]  [mod_jk.c (1668)]: Into handler r-proxyreq=0
r-handler=jakarta-servlet r-notes=7932888 worker=ajp13
[Thu Mar 20 08:58:15 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Thu Mar 20 08:58:15 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, done 
found a worker
[Thu Mar 20 08:58:15 2003]  [mod_jk.c (485)]: agsp=80 agsn=www.fcgphoto.com
hostn=www.fcgphoto.com shostn=www.fcgphoto.com cbsport=0 sport=0 
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Thu Mar 20 08:58:15 2003]  [jk_connect.c (132)]: Into jk_open_socket
[Thu Mar 20 08:58:15 2003]  [jk_connect.c (139)]: jk_open_socket, try to
connect socket = 664
[Thu Mar 20 08:58:15 2003]  [jk_connect.c (148)]: jk_open_socket, after connect
ret = 0
[Thu Mar 20 08:58:15 2003]  [jk_connect.c (157)]: jk_open_socket, set
TCP_NODELAY to on
[Thu Mar 20 08:58:15 2003]  [jk_connect.c (174)]: jk_open_socket, return, sd =
664
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (614)]: In
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 664
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #581
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (729)]: received from ajp13 #81
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 404
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 2
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Language] = [en-US]
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (729)]: received from ajp13 #726
[Thu Mar 20 08:58:15 2003]  [mod_jk.c (386)]: writing 722 (722) out of 722 
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (729)]: received from ajp13 #2
[Thu Mar 20 08:58:15 2003]  [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done,
recycling connection
[Thu Mar 20 08:58:15 2003] ajp13 www.fcgphoto.com 0.03

=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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