Tomcat 3.2.1 servlet load on startup problem

2000-12-23 Thread Sunny L.S.Chan

Hi, I have been following the instructions in the tomcat faq to start a
servlet whenever tomcat starts, but with no luck, can someone give me a
light?
When-ever I start tomcat, the console should beam out a message which says
"Servlet Loaded" and set a "appServerPath" variable, however, its just
simply not load.
I can run the servlet manually with no problem, the console will beam out
the message, and set that variable

here is the context path in the server.xml of tomcat:
Context path="/myDir"
 docBase="C:\myDir"
 crossContext="true"
 debug="0"
 reloadable="true"
 trusted="false" 
/Context

Here is the web.xml in the C:\myDir\WEB-INF\:
which dezscribes the servlet to load:
servlet
  servlet-nameservletInit_newsgroup/servlet-name
  servlet-classcom.myservlet.servletInit_newsgroup/servlet-class
load-on-startup1/load-on-startup
/servlet

the servlet is located in C:\myDir\WEB-INF\classes\com\myservlet\

am I missing something?

Thanks!



 servletInit_newsgroup.java


Re: Mod_jserv for Solaris 7.0 sparc

2000-11-19 Thread Sunny L.S.Chan



I have encountered the same problem like Lester 
(Same OS), the extend of the message is :

# /usr/local/apache_1.3.14/bin/apxs -c -o 
mod_jserv.so *.cgcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite 
-DNO_DL_NEEDED -I/usr/local/apache/include -c autochange.cgcc 
-DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_ajpv11.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_ajpv12.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_balance.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_image.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_mmap.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_protocols.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_status.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_utils.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_watchdog.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_wrapper.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_wrapper_unix.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c jserv_wrapper_win.cgcc -DSOLARIS2=270 
-DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-I/usr/local/apache/include -c mod_jserv.c -o mod_jserv.so 
mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o 
jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o 
jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o autochange.o 
apxs:Break: Command failed with rc=16777215

Anyone have any ideas which step I missed? 




  - Original Message - 
  From: 
  Lester Balmaceda 
  Santamaria 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, November 17, 2000 12:49 
  AM
  Subject: Mod_jserv for Solaris 7.0 
  sparc
  
  I have been trying to compile mod_jserv for days 
  and I'm only receiving this message:
  
  
  apxs -c mod_jserv.c jserv*.c
  cc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite 
  -KPIC -DSHARED_MODULE -I/usr/local/apache/include -c 
  mod_jserv.capxs:Break: Command failed with rc=16711680
  
  Suggestions, ideas ?
  
  Thanks
  
  Lester Balmaceda.