Re: Invoker workaround on AIX

2005-01-28 Thread K thiruthuvadas
Dear Ben,
Just check the servlet mapping package separator that
you have implemented it in AIX and Solaris.

regards,
Das
--- Flaffer [EMAIL PROTECTED] wrote:

 I added the mapping to the web.xml of the app and it
 made no
 difference. For some reason, it seems to ignore the
 mapping
 completely! I have no idea why it works on Solaris
 but not on AIX!
 
 Ben Ricker
 
 On Thu, 27 Jan 2005 22:45:02 -0500, Parsons
 Technical Services
 [EMAIL PROTECTED] wrote:
  I have not worked with TC4 but I think your
 problem is that the mappings for
  the servlets should be in the web.xml for the app
 and not in the general
  web.xml. Also when you do the mappings in the app
 web.xml you do not need
  fully qualified paths.
  
  Doug
  
  - Original Message -
  From: Flaffer [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Thursday, January 27, 2005 12:37 PM
  Subject: Invoker workaround on AIX
  
  I am migrating around 10 apps from Tomcat 4.0.6
 (Sun JDK 1.3.1) to
   Tomcat 4.0.6 on AIX 5.2 using IBMs JDK
 1.3.1sr7).
  
   I am having an issue working around the invoker
 servlet. I have the
   workaround(where you explicitely map the
 /servlet context ) working on
   Solaris. But when I bring the config over to
 AIX, the URI  /servlet
   cannot be mapped to a context.
  
   Here are the two configs. The first one does not
 work. It throws this
   error in the engine log:
  
   2005-01-27 10:20:39 StandardHost[pdw0stl5]:
 Mapping request URI
   '/servlet/com.bo.hsal.servlet'
   2005-01-27 10:20:39 StandardHost[pdw0stl5]:  
 Trying the longest
   context path prefix
   2005-01-27 10:20:39 StandardHost[pdw0stl5]:  
 Trying the default context
   2005-01-27 10:20:39 StandardHost[pdw0stl5]:
 MAPPING configuration
   error for request URI
  
   The access log shows a 500 error thrown on the
 request. Here is the
   pertinent part of the web.xml for the
 application server instance
   (i.e., conf/web.xml):
  
   ?xml version=1.0 encoding=ISO-8859-1 ?
   !DOCTYPE web-app (View Source for full
 doctype...)
   web-app
   servlet
   servlet-namedefault/servlet-name
  

servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
   init-param
   param-namedebug/param-name
   param-value0/param-value
   /init-param
   init-param
   param-namelistings/param-name
   param-valuefalse/param-value
   /init-param
   load-on-startup1/load-on-startup
   /servlet
  
   - !--  Mapping to replace Invoker servlet.
 NOTE: USED ONLY BY BO APPS.
   --
   !--  LEAVE COMMENTED OUT FOR OTHER APPS. This
 addresses a securty
   concern.
   --
   !--  See
  

http://marc.theaimsgroup.com/?l=tomcat-userm=103945394724196w=2
   --
  
   servlet
   servlet-nameservlet/servlet-name
  

servlet-classcom.bo.hsal.HSALServlet/servlet-class
   /servlet
  
   servlet
   servlet-namejsp/servlet-name
  

servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
   init-param
   param-namelogVerbosityLevel/param-name
   param-valueWARNING/param-value
   /init-param
   load-on-startup3/load-on-startup
   /servlet
  
   !--   Built In Servlet Mappings
 =
   --
   servlet-mapping
   servlet-namedefault/servlet-name
   url-pattern//url-pattern
   /servlet-mapping
  
   !--  Uncomment for BO Apps Only. See Invoker
 replacement above.
   --
  
   servlet-mapping
   servlet-nameservlet/servlet-name
   url-pattern/servlet/*/url-pattern
   /servlet-mapping
  
   servlet-mapping
   servlet-namejsp/servlet-name
   url-pattern*.jsp/url-pattern
   /servlet-mapping
  
   The config that works is the default one which
 loads the invoker
   servlet and maps it.
  
   ?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
  
   servlet
 servlet-namedefault/servlet-name
  
  

servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value0/param-value
 /init-param
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param
 load-on-startup1/load-on-startup
   /servlet
  
   servlet
 servlet-nameinvoker/servlet-name
  
  

servlet-classorg.apache.catalina.servlets.InvokerServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value0/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet
  
   servlet
 servlet-namejsp/servlet-name


servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
   param-namelogVerbosityLevel/param-name
   param-valueWARNING/param-value
 /init-param
 load-on-startup3/load-on-startup
   /servlet
  
   !--  Built In Servlet Mappings
   = --
  
   servlet-mapping
 servlet-namedefault/servlet-name
 url-pattern//url-pattern
   /servlet-mapping
  
   !-- The mapping for the 

hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread K thiruthuvadas
Dear Friends,
i want to subscribe to the mailing list of tomcat.
 
 I have a doubt here
 
 i successfully installed tomcat 5.x in my windows
 server
 
 but when i tried to run my first sample application
 i
 caould not succeed
 
 i downloaded the sample file and placed it in the
 webapps folder.
 
 But when i access the http://localhost:8080/sample
 link the browser asks for network user name and
 password
 
 I could not run my first application with the help
 available inthe tomcat website

It shows when Tomcat starts, that port 8080 is in use,
it throws a java.net.bind exception 
 regards,
 Das




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: hi help regarding running first servlet,jsp in Tomcat 5.x

2005-01-26 Thread K thiruthuvadas
Dear Caroline,
Thanks for the instant mail.  It is amazing to find
that the support is almost instantaneous for Tomcat
Jakarta Webserver.

I solved the problem by shutting down my IIS admin
service which was occupying the 8080 port

thanks again for the link
http://www.moreservlets.com/Using-Tomcat-4.html#Configure-Tomcat



regards,
Das

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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