CPU 100% usage in applet

2002-08-30 Thread Sanjay Bahal

Hi,
I am running my applet on IE 5.5 not using any plugin,
on a NT heavy
duty machine. The applet takes up 100% CPU. The applet
does not have any GUI component but launches JSP
pages. The applet connects to backend resources using
socket, uses threads etc. The bulk of the code
is in Java classes- the classes themselves run fine
outside of the applet. I can see the memory usage-
that is not high.
Any ideas or suggestions welcome. How can we measure
CPU usage in Java?
Thanks a lot,
Sanjay

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




GetPort returning -1 from applet

2002-07-29 Thread Sanjay Bahal

Trying to get portnumber from an applet running on
Apache. get the port number as -1. This is whether I
use the url with/without the port number-
URL currrentPage = getCodeBase();
String protocol = currrentPage.getProtocol();
String host= currrentPage.getHost();
int port= currrentPage.getPort();
The host comes correctly as- localhost but port
returns as -1.
Thanks
Sanjay


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




RE: Working Directory

2002-04-04 Thread Sanjay Bahal

Thanks all for responding. The most suitable approach
for me is:
InputStream is = 
this.getClass().getClassLoader().getResourceAsStream(myApp.properties);

I just put my file in the classes directory- that is
what I would like.
Sanjay
--- Jacob Kjome [EMAIL PROTECTED] wrote:
 That might work in most cases, but it won't find the
 file in a container 
 that doesn't expand the .war archive.  The following
 will read it whether 
 in a directory structure or in a .war archive:
 
 InputStream is = 

getServletContext().getResourceAsStream(/WEB-INF/myApp.properties);
 
 
 If the file exists in the same package as the class,
 you can load it like this:
 
 InputStream is =

this.getClass().getResourceAsStream(myApp.properties);
 
 I would think you could also do this to find it in
 the classes directory:
 
 InputStream is = 

this.getClass().getClassLoader().getResourceAsStream(myApp.properties);
 
 
 All those methods are independent of the filesystem.
 
 Jake
 
 At 11:38 AM 4/3/2002 -0500, you wrote:
 I place my properties files in the WEB-INF
 directory and do the following to
 find them -
 
 String webInfFolder =
 getServletContext().getRealPath(/WEB-INF)
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 03, 2002 11:34 AM
 To: tomcat
 Subject: Working Directory
 
 
 I am trying to read a properties file from my
 servlet.
 It always comes back saying file not found. I have
 tried placing the file in
 classes/web-inf/context-path. Ideally I would like
 to
 lace it in my classes directory- How do I achieve
 it.
 Thanks
 Sanjay
 
 __
 Do You Yahoo!?
 Yahoo! Tax Center - online filing with TurboTax
 http://taxes.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Working Directory

2002-04-03 Thread Sanjay Bahal

I am trying to read a properties file from my servlet.
It always comes back saying file not found. I have
tried placing the file in
classes/web-inf/context-path. Ideally I would like to
lace it in my classes directory- How do I achieve it.
Thanks
Sanjay

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




RE: Working Directory

2002-04-03 Thread Sanjay Bahal

Thanks Mark  Craig.
My situation is slightly different. I am trying to
read the property file from a Java class on the
server(not the servlet). I would think there would be
a way around to do this- else I can work around to
pass a param to the helper class.
Thanks
Sanjay
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Wed, 3 Apr 2002, Wagoner, Mark wrote:
 
  Date: Wed, 3 Apr 2002 11:38:31 -0500
  From: Wagoner, Mark [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: 'Tomcat Users List'
 [EMAIL PROTECTED]
  Subject: RE: Working Directory
 
  I place my properties files in the WEB-INF
 directory and do the following to
  find them -
 
  String webInfFolder =
 getServletContext().getRealPath(/WEB-INF)
 
 
 This only works if the app is run from an unpacked
 directory, which is not
 guaranteed to be portable (not every server supports
 running this way).
 The best way to read a properties file is to put it
 in the WEB-INF
 subdirectory and use something like:
 
   Properties props = new Properties();
   InputStream stream =


getServletContext().getResourceAsStream(/WEB-INF/myprops.properties);
   props.load(stream);
   stream.close();
 
 which is guaranteed to be portable to any server.
 
 Craig
 
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 03, 2002 11:34 AM
  To: tomcat
  Subject: Working Directory
 
 
  I am trying to read a properties file from my
 servlet.
  It always comes back saying file not found. I have
  tried placing the file in
  classes/web-inf/context-path. Ideally I would like
 to
  lace it in my classes directory- How do I achieve
 it.
  Thanks
  Sanjay
 
  __
  Do You Yahoo!?
  Yahoo! Tax Center - online filing with TurboTax
  http://taxes.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




RE: Working Directory

2002-04-03 Thread Sanjay Bahal

Carig,
I tried this it does not work. I can't get the stream.
I have a property file in the classes directory- where
I all my classes are. My code is:
MyClass thisInstance  = new MyClass();
InputStream stream =
thisInstance.getClass().getResourceAsStream(propFile);
if ( stream != null) {
  props.load(stream);
  stream.close();
}else System.out.println(The stream null);

Thanks
Sanjay


--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Wed, 3 Apr 2002, Sanjay Bahal wrote:
 
  Date: Wed, 3 Apr 2002 12:00:17 -0800 (PST)
  From: Sanjay Bahal [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: Tomcat Users List
 [EMAIL PROTECTED]
  Subject: RE: Working Directory
 
  Thanks Mark  Craig.
  My situation is slightly different. I am trying to
  read the property file from a Java class on the
  server(not the servlet). I would think there would
 be
  a way around to do this- else I can work around to
  pass a param to the helper class.
 
 Consider using
 getClass().getResourceAsStream(myprops.properties)
 for
 this kind of purpose.  This looks for
 myprops.properties on your class
 path, and loads it from wherever the classes
 themselves are found (either
 an unpacked directory or a JAR file).
 
  Thanks
  Sanjay
 
 Craig
 
 
  --- Craig R. McClanahan [EMAIL PROTECTED]
 wrote:
  
  
   On Wed, 3 Apr 2002, Wagoner, Mark wrote:
  
Date: Wed, 3 Apr 2002 11:38:31 -0500
From: Wagoner, Mark
 [EMAIL PROTECTED]
Reply-To: Tomcat Users List
   [EMAIL PROTECTED]
To: 'Tomcat Users List'
   [EMAIL PROTECTED]
Subject: RE: Working Directory
   
I place my properties files in the WEB-INF
   directory and do the following to
find them -
   
String webInfFolder =
   getServletContext().getRealPath(/WEB-INF)
   
  
   This only works if the app is run from an
 unpacked
   directory, which is not
   guaranteed to be portable (not every server
 supports
   running this way).
   The best way to read a properties file is to put
 it
   in the WEB-INF
   subdirectory and use something like:
  
 Properties props = new Properties();
 InputStream stream =
  
  
 

getServletContext().getResourceAsStream(/WEB-INF/myprops.properties);
 props.load(stream);
 stream.close();
  
   which is guaranteed to be portable to any
 server.
  
   Craig
  
  
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:34 AM
To: tomcat
Subject: Working Directory
   
   
I am trying to read a properties file from my
   servlet.
It always comes back saying file not found. I
 have
tried placing the file in
classes/web-inf/context-path. Ideally I would
 like
   to
lace it in my classes directory- How do I
 achieve
   it.
Thanks
Sanjay
   
   
 __
Do You Yahoo!?
Yahoo! Tax Center - online filing with
 TurboTax
http://taxes.yahoo.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]
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Tax Center - online filing with TurboTax
  http://taxes.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: mod_webapp

2002-03-29 Thread Sanjay Bahal

Can any one give the url for mod_jk or web_app I have
not been able to find it on the site.
Thanks 
Sanjay
--- Andrzej Jan Taramina [EMAIL PROTECTED] wrote:
  Searching the jakarta site is like trying to find
 a needle in a haystack.  
  Does anyone have the url for an already built
 mod_webapp for windows 
  machines?
 
 Far as I know, the current code for mod_webapp on a
 windows platform still have a 
 critical bug that causes it to block when sending
 binary (eg. image) data between 
 Apache and Tomcat.  Just FYI 
 
 
 ...Andrzej
 
 Chaeron Corporation
 http://www.chaeron.com
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

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




Re: ANYONE HAVE MOD_JK?

2002-03-28 Thread Sanjay Bahal

I need one too for NT.
Thanks a lot,
Sanjay
--- Neil Streeter [EMAIL PROTECTED] wrote:
 I have installed all binary packages Tomcat
 4.0.3... apache 1.3.24 on 
 windows 2000
 
 is there a binary version of mod_jk available that
 fits this setup? I 
 couldn't find it... if you have one, could you
 please send it to me!
 
 -- or --
 
 will the 'old' binary that I could find for tomcat
 3.x work w/o problems? (it
 says it was compiled agains the x.17 version of
 apache - so I'm guessing not)
 
  I don't have ms c++ so I'm not able to compile
 this as far as I know...
 unless there is a gnu compiler that I can use that
 will do the trick (please
 point this out! I don't do much w/ ms products in
 this realm -- mostly linux)
 I downloaded the 'connectors src' from tomcat 4.0.1
 - but I don't think I can
 do anything w/ it
 
 I could be missing something the docs are sparse in
 this area...
 
 Thanks,
 ns
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Re: Tomcat 4 NT Service

2002-03-28 Thread Sanjay Bahal

I am looking for it too?
Thanks,
Sanjay
--- Karthik Gopal [EMAIL PROTECTED] wrote:
 Hi ,
 Where can I find the jk_nt_service.exe for Tomcat 4?
 
 Or can I reuse any older version of this exe.
 
 Thankx
 Karthik
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Re: Tomcat 4 NT Service

2002-03-28 Thread Sanjay Bahal

Thanks Jacob.
I will try it out.
Sanjay
--- Jacob Kjome [EMAIL PROTECTED] wrote:
 Hello,
 
 I saw you both asking how to run Tomcat 4 as an NT
 Service on the
 Tomcat User list.  I was looking at the archives. 
 I'm not subscribed
 to the list, which is why I am sending this directly
 to you.  Here is
 you answer:
 
 Install Catalina Service:
 
 %CATALINA_HOME%\bin\tomcat.exe -install
 Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll

-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
 -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs
 -start org.apache.catalina.startup.Bootstrap -params
 start -stop org.apache.catalina.startup.Bootstrap
 -params stop -out %CATALINA_HOME%\logs\stderr.log
 
 Uninstall Catalina Service:
 
 %CATALINA_HOME%\bin\tomcat.exe -uninstall
 Apache-Catalina
 
 
 I found the answer after looking at this article:

http://www.webmasterbase.com/printTemplate.php?aid=305
 
 
 As you can tell, Tomcat 4.xx does not use
 jk_nt_service.exe like
 Tomcat 3.xx does.  Hope that helps.  May I suggest
 that you post this
 answer back to the list so others can see how to do
 this.
 
 later,
 
 Jake
 
 -- 
 Best regards,
  Jacob  mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Configuring Tomcat 4/mod_webapp

2002-03-26 Thread Sanjay Bahal

What is the exact link to get mod_jk. I can't seem to
find it-  4) Integrate Tomcat and Apache
Stop the Tomcat and Apache services. Then download
mod_webapp from
jakarta.apache.org

Thanks 
Sanjay

--- Chris Pheby [EMAIL PROTECTED] wrote:
 Apache, MySQL, Tomcat, Netbeans and Mozilla
 ---
 
 Hope this helps
 
 
 Chris.
 
 -
 
 1) Install Apache
 Install Apache_1.3.22-win32-x86.exe (Windows
 Installer of latest stable
 release) to c:\server\ (actually places it in Apache
 subdirectory of
 c:\server). During installation select the Run as
 Service for all Users
 option.
 
 Verify the installation in Control Panel / Services
 by checking for Apache.
 
 2) Install MySQL
 Install mysql-max-3.23.49-win.zip by unzipping and
 running setup.exe
 
 Recommend installing to c:\server\mysql
 
 Create c:\winnt\my.ini with the following contents:
 
 [mysqld]
 basedir=C:/projects/mysql
 datadir=C:/projects/mysql/data
 
 When you are done add c:\server\mysql\bin to the
 path environment variable.
 
 You can get MySQL-Front from www.mysqlfront.de if
 you need a graphical front
 end for the database.
 
 Also available is MyODBC, which allows MySQL to be
 connected to by
 applications utilising ODBC.
 
 You can use the winmysqladmin utility to make
 mysql-max run as a service
 instead of mysql which supports transactions with
 berkeley db tables.
 
 3) Install Java 2 Standard Edition 1.4
 Run the J2SE installer, and choose to install to
 c:\Program Files\Java\J2SE.
 Install all components and set it as a plugin for
 all browsers
 
 Add the following to the PATH variable:
 
 c:\Progra~1\J2SE\bin.
 Install Tomcat 4.0.4 beta 1 LE
 Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and
 run the installer. Take
 care to install Tomcat as a Service when offered the
 option by the
 installer.
 
 Set the following environment variables:
 
 JAVA_HOME - c:\Progra~1\Java\J2SE
 CATALINA_HOME - c:\Progra~1\Java\Tomcat
 
 4) Integrate Tomcat and Apache
 Stop the Tomcat and Apache services. Then download
 mod_webapp from
 jakarta.apache.org. Extract libapr.dll to
 c:\winnt\system32. Also extract
 libapr.dll and mod_webapp.so to
 c:\server\apache\modules.
 
 Add the following lines to httpd.conf:
 
 LoadModule webapp_module modules/mod_webapp.so
 AddModule mod_webapp.c
 You need to configure a connector in httpd.conf
 (examples shown for the
 modules you can export initially - remove the
 comments to enable them):
 
 IfModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8008
 WebAppInfo /webapp-info
 #WebAppDeploy examples warpConnection /examples
 #WebAppDeploy webdav warpConnection /webdav
 /IfModule
 Before restarting Apache download Service+ from
 ActivePlus and use it to set
 Apache as depending on Tomcat. Then restart Apache
 (Tomcat will restart
 automatically).
 
 5) Install JDBC Driver for MySQL
 Download the MySQL JDBC driver.
 
 Open the file
 (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip
 and extract
 mm.mysql-2.0.11-bin.jar and place it in c:\program
 files\java\j2se\jre\lib\ext. It will now be
 automatically available to Java
 programs, without needing to add it to the
 classpath.
 
 6) Install Mozilla Plugin
 Copy the np* files from C:\Program
 Files\Java\J2SE\jre\bin to C:\Program
 Files\Mozilla\Plugins.
 
 Restart Mozilla
 
 7) Install NetBeans
 Install NetBeans to c:\Program Files\Java\NetBeans.
 The installer will
 automatically detect the JDK.
 
 Netbeans can debug Tomcat, if you want to enable
 this first remove the
 existing Tomcat Service:
 
 net stop Apache Tomcat
 c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall
 Apache Tomcat
 Next install the modified Tomcat service which is
 enabled for debugging:
 
 Tomcat.exe -install Apache Tomcat
 c:\progra~1\java\j2se\jre\bin\server\jvm.dll
 -Djava.class.path=c:\progra~1\j

ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
 ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent
 -Xrunjdwp:transport=dt_
 socket,server=y,address=12999,suspend=n
 -Dcatalina.home=c:\progra~1\java\tom
 cat\ -start org.apache.catalina.startup.Bootstrap
 -params start -stop
 org.apache.catalina.startup.Bootstrap -params stop
 -out
 c:\progra~1\java\tomcat\logs\stdout.log -err
 c:\progra~1\java\tomcat\logs\stderr.log
 Make the service depend on MySQL as before
 
 Once Tomcat has been restarted go to Netbeans, and
 select the Debug / Attach
 menu. Seelect JPDA as the Debugger Type, Socket
 Attach, the hostname of the
 machine Tomcat is on, and 12999 as the port. It is
 now possible to debug the
 running Tomcat server.
 
 To assist debugging mount the Tomcat Sources in the
 Netbeans explorer:
 
 C:\Program Files\Java\J2SE\src
 C:\Program Files\Java\Tomcat\src\catalina\src\share
 C:\Program Files\Java\Tomcat\src\catalina\src\test
 C:\Program Files\Java\Tomcat\src\jasper\src\share
 
 -Original Message-
 From:

[EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]
 On Behalf Of Larry Chambers
 Sent: 

Tomact-Apache Link

2002-03-26 Thread Sanjay Bahal

How do I link Apache and Tomcat. Is it mod_jk or
mod_webapp. What are the links to get them.
Thanks a lot,
Sanjay


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet mapping question

2002-03-26 Thread Sanjay Bahal

I found a problem with this. If you don't do /* it
becomes case sensitive. So that again becomes an
issue.
Sanjay
--- Sanjay Bahal [EMAIL PROTECTED] wrote:
 Yes this works? I will paly with it more and post.
 Thanks a lot,
 Sanjay
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  Sanjay,
  Try
 
 http://localhost:8080/context/search/SearchServlet
  
  where context is the directory name under
 webapps.
  Lance
  
  
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 25, 2002 5:04 PM
  To: Tomcat Users List
  Subject: RE: Servlet mapping question
  
  
  My problem has been this mapping has not worked:
  servlet-mapping
servlet-nameSearchServlet/servlet-name
   
  url-pattern/search/SearchServlet/url-pattern
  /servlet-mapping
 If I try to call this-
  http://localhost:8080/search/SearchServlet it
 fails
  uneless I make mapiing to /search/*.
  Thanks
  Sanjay
  --- Lance Smith [EMAIL PROTECTED]
  wrote:
   Then according to Craig's previous email you
 need
   to-do
   something like this:
   servlet-mapping
 servlet-nameSearchServlet/servlet-name

   url-pattern/search/SearchServlet/url-pattern
   /servlet-mapping
   servlet-mapping

 servlet-nameSearchServlet2/servlet-name

  
 url-pattern/search/SearchServlet2/url-pattern
   /servlet-mapping
   
   then you should reach it with
   http:/.../search/SearchServlet or
   http://.../search/SerchServlet2 for you're two
   different ones.
   
   Let me know if this is what you are looking for.
   Lance
   
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Friday, March 22, 2002 3:16 PM
   To: Tomcat Users List
   Subject: RE: Servlet mapping question
   
   
   I have a similar issue- albeit simpler. I have
 two
   servlets in one subdir. I have mapped it with
   something like-
   servlet-mapping
servlet-nameSearchServlet/servlet-name
url-pattern/search/*/url-pattern
/servlet-mapping
   As a result of which /search/anything calls the
   SearchServlet. How do I map to another servlet
 in
   the
   same directory. I tried removing the /* and
 giving
  a
   specific name- the 1st servlet itself fails.
   Thanks
   Sanjay
   --- Craig R. McClanahan [EMAIL PROTECTED]
   wrote:


On Fri, 22 Mar 2002, Sean LeBlanc wrote:


 To add even more to this - I can't even get
  the
pattern like this
 to work:

 url-pattern/c*/url-pattern

 anything typed doesn't seem to get
 recognized
   and
used by the
 servlet. Any ideas would be welcome.


You might start by consulting the Servlet
Specification, to see what
mapping patterns are legal :-).
   
  
 
 http://java.sun.com/products/servlet/download.html

1.  Exact match (/foo or /foo/bar)
2.  Prefix match (/* or /foo/* or /foo/bar/*)
3.  Extension match (*.jsp or *.foo)
4.  Default servlet (/) used if no other
 mapping
matches.
(NOTE:  Tomcat 4 uses this for the
   file-serving
servlet,
so replacing it will remove file serving
   unless
you do
that yourself)

The rules are applied hierarchically -- in
 other
words, the container
checks for exact matches first, then prefix
   matches,
...

In each case, request.getServletPath() will
  return
the portion of the
request URI that was used to map to your
  servlet. 
In case (2), anything
after the matching part will be returned via
request.getPathInfo().

Craig McClanahan


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

   
   
  
 __
   Do You Yahoo!?
   Yahoo! Movies - coverage of the 74th Academy
  Awards.
   http://movies.yahoo.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]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.com/
  
  --
  To unsubscribe:  
 
 mailto:[EMAIL PROTECTED]
 
=== message truncated ===


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet mapping question

2002-03-26 Thread Sanjay Bahal

What I am trying to do now is mapping my servlets to
names like
/search/* to SearchServlet
/def/* to DefaultServlet  etc.
I would think this is a convulted naming/mapping
convention but that is as far as I have been able to
think.
Thanks a lot,
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 All tomcat URLs are case sensitive just like *nix,
 even on windoz.
 Nothing we can do about it.
 
 Other method is to map /* to a specific servlet that
 parses
 the * and send it on to the correct class. Then you
 could make
 it none case sensitive.
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 26, 2002 12:19 PM
 To: Tomcat Users List
 Subject: RE: Servlet mapping question
 
 
 I found a problem with this. If you don't do /* it
 becomes case sensitive. So that again becomes an
 issue.
 Sanjay
 --- Sanjay Bahal [EMAIL PROTECTED] wrote:
  Yes this works? I will paly with it more and post.
  Thanks a lot,
  Sanjay
  --- Lance Smith [EMAIL PROTECTED]
  wrote:
   Sanjay,
   Try
  
 
 http://localhost:8080/context/search/SearchServlet
   
   where context is the directory name under
  webapps.
   Lance
   
   
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 25, 2002 5:04 PM
   To: Tomcat Users List
   Subject: RE: Servlet mapping question
   
   
   My problem has been this mapping has not worked:
   servlet-mapping
 servlet-nameSearchServlet/servlet-name

   url-pattern/search/SearchServlet/url-pattern
   /servlet-mapping
  If I try to call this-
   http://localhost:8080/search/SearchServlet it
  fails
   uneless I make mapiing to /search/*.
   Thanks
   Sanjay
   --- Lance Smith
 [EMAIL PROTECTED]
   wrote:
Then according to Craig's previous email you
  need
to-do
something like this:
servlet-mapping
 
 servlet-nameSearchServlet/servlet-name
 
   
 url-pattern/search/SearchServlet/url-pattern
/servlet-mapping
servlet-mapping
 
  servlet-nameSearchServlet2/servlet-name
 
   
  url-pattern/search/SearchServlet2/url-pattern
/servlet-mapping

then you should reach it with
http:/.../search/SearchServlet or
http://.../search/SerchServlet2 for you're two
different ones.

Let me know if this is what you are looking
 for.
Lance

-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 3:16 PM
To: Tomcat Users List
Subject: RE: Servlet mapping question


I have a similar issue- albeit simpler. I have
  two
servlets in one subdir. I have mapped it with
something like-
servlet-mapping

 servlet-nameSearchServlet/servlet-name
 url-pattern/search/*/url-pattern
 /servlet-mapping
As a result of which /search/anything calls
 the
SearchServlet. How do I map to another servlet
  in
the
same directory. I tried removing the /* and
  giving
   a
specific name- the 1st servlet itself fails.
Thanks
Sanjay
--- Craig R. McClanahan
 [EMAIL PROTECTED]
wrote:
 
 
 On Fri, 22 Mar 2002, Sean LeBlanc wrote:
 
 
  To add even more to this - I can't even
 get
   the
 pattern like this
  to work:
 
  url-pattern/c*/url-pattern
 
  anything typed doesn't seem to get
  recognized
and
 used by the
  servlet. Any ideas would be welcome.
 
 
 You might start by consulting the Servlet
 Specification, to see what
 mapping patterns are legal :-).

   
  
 
 http://java.sun.com/products/servlet/download.html
 
 1.  Exact match (/foo or /foo/bar)
 2.  Prefix match (/* or /foo/* or
 /foo/bar/*)
 3.  Extension match (*.jsp or *.foo)
 4.  Default servlet (/) used if no other
  mapping
 matches.
 (NOTE:  Tomcat 4 uses this for the
file-serving
 servlet,
 so replacing it will remove file serving
unless
 you do
 that yourself)
 
 The rules are applied hierarchically -- in
  other
 words, the container
 checks for exact matches first, then prefix
matches,
 ...
 
 In each case, request.getServletPath() will
   return
 the portion of the
 request URI that was used to map to your
   servlet. 
 In case (2), anything
 after the matching part will be returned via
 request.getPathInfo().
 
 Craig McClanahan
 
 
 --
 To unsubscribe:  

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

 mailto:[EMAIL PROTECTED]
 


   
  __
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy
   Awards.
 
=== message truncated ===


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th

RE: Servlet mapping question

2002-03-25 Thread Sanjay Bahal

My problem has been this mapping has not worked:
servlet-mapping
  servlet-nameSearchServlet/servlet-name
  url-pattern/search/SearchServlet/url-pattern
/servlet-mapping
   If I try to call this-
http://localhost:8080/search/SearchServlet it fails
uneless I make mapiing to /search/*.
Thanks
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 Then according to Craig's previous email you need
 to-do
 something like this:
 servlet-mapping
   servlet-nameSearchServlet/servlet-name
  
 url-pattern/search/SearchServlet/url-pattern
 /servlet-mapping
 servlet-mapping
   servlet-nameSearchServlet2/servlet-name
  
 url-pattern/search/SearchServlet2/url-pattern
 /servlet-mapping
 
 then you should reach it with
 http:/.../search/SearchServlet or
 http://.../search/SerchServlet2 for you're two
 different ones.
 
 Let me know if this is what you are looking for.
 Lance
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 22, 2002 3:16 PM
 To: Tomcat Users List
 Subject: RE: Servlet mapping question
 
 
 I have a similar issue- albeit simpler. I have two
 servlets in one subdir. I have mapped it with
 something like-
 servlet-mapping
  servlet-nameSearchServlet/servlet-name
  url-pattern/search/*/url-pattern
  /servlet-mapping
 As a result of which /search/anything calls the
 SearchServlet. How do I map to another servlet in
 the
 same directory. I tried removing the /* and giving a
 specific name- the 1st servlet itself fails.
 Thanks
 Sanjay
 --- Craig R. McClanahan [EMAIL PROTECTED]
 wrote:
  
  
  On Fri, 22 Mar 2002, Sean LeBlanc wrote:
  
  
   To add even more to this - I can't even get the
  pattern like this
   to work:
  
   url-pattern/c*/url-pattern
  
   anything typed doesn't seem to get recognized
 and
  used by the
   servlet. Any ideas would be welcome.
  
  
  You might start by consulting the Servlet
  Specification, to see what
  mapping patterns are legal :-).
 
 http://java.sun.com/products/servlet/download.html
  
  1.  Exact match (/foo or /foo/bar)
  2.  Prefix match (/* or /foo/* or /foo/bar/*)
  3.  Extension match (*.jsp or *.foo)
  4.  Default servlet (/) used if no other mapping
  matches.
  (NOTE:  Tomcat 4 uses this for the
 file-serving
  servlet,
  so replacing it will remove file serving
 unless
  you do
  that yourself)
  
  The rules are applied hierarchically -- in other
  words, the container
  checks for exact matches first, then prefix
 matches,
  ...
  
  In each case, request.getServletPath() will return
  the portion of the
  request URI that was used to map to your servlet. 
  In case (2), anything
  after the matching part will be returned via
  request.getPathInfo().
  
  Craig McClanahan
  
  
  --
  To unsubscribe:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet mapping question

2002-03-25 Thread Sanjay Bahal

Yes this works? I will paly with it more and post.
Thanks a lot,
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 Sanjay,
 Try
 http://localhost:8080/context/search/SearchServlet
 
 where context is the directory name under webapps.
 Lance
 
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 25, 2002 5:04 PM
 To: Tomcat Users List
 Subject: RE: Servlet mapping question
 
 
 My problem has been this mapping has not worked:
 servlet-mapping
   servlet-nameSearchServlet/servlet-name
  
 url-pattern/search/SearchServlet/url-pattern
 /servlet-mapping
If I try to call this-
 http://localhost:8080/search/SearchServlet it fails
 uneless I make mapiing to /search/*.
 Thanks
 Sanjay
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  Then according to Craig's previous email you need
  to-do
  something like this:
  servlet-mapping
servlet-nameSearchServlet/servlet-name
   
  url-pattern/search/SearchServlet/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameSearchServlet2/servlet-name
   
  url-pattern/search/SearchServlet2/url-pattern
  /servlet-mapping
  
  then you should reach it with
  http:/.../search/SearchServlet or
  http://.../search/SerchServlet2 for you're two
  different ones.
  
  Let me know if this is what you are looking for.
  Lance
  
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 22, 2002 3:16 PM
  To: Tomcat Users List
  Subject: RE: Servlet mapping question
  
  
  I have a similar issue- albeit simpler. I have two
  servlets in one subdir. I have mapped it with
  something like-
  servlet-mapping
   servlet-nameSearchServlet/servlet-name
   url-pattern/search/*/url-pattern
   /servlet-mapping
  As a result of which /search/anything calls the
  SearchServlet. How do I map to another servlet in
  the
  same directory. I tried removing the /* and giving
 a
  specific name- the 1st servlet itself fails.
  Thanks
  Sanjay
  --- Craig R. McClanahan [EMAIL PROTECTED]
  wrote:
   
   
   On Fri, 22 Mar 2002, Sean LeBlanc wrote:
   
   
To add even more to this - I can't even get
 the
   pattern like this
to work:
   
url-pattern/c*/url-pattern
   
anything typed doesn't seem to get recognized
  and
   used by the
servlet. Any ideas would be welcome.
   
   
   You might start by consulting the Servlet
   Specification, to see what
   mapping patterns are legal :-).
  
 
 http://java.sun.com/products/servlet/download.html
   
   1.  Exact match (/foo or /foo/bar)
   2.  Prefix match (/* or /foo/* or /foo/bar/*)
   3.  Extension match (*.jsp or *.foo)
   4.  Default servlet (/) used if no other mapping
   matches.
   (NOTE:  Tomcat 4 uses this for the
  file-serving
   servlet,
   so replacing it will remove file serving
  unless
   you do
   that yourself)
   
   The rules are applied hierarchically -- in other
   words, the container
   checks for exact matches first, then prefix
  matches,
   ...
   
   In each case, request.getServletPath() will
 return
   the portion of the
   request URI that was used to map to your
 servlet. 
   In case (2), anything
   after the matching part will be returned via
   request.getPathInfo().
   
   Craig McClanahan
   
   
   --
   To unsubscribe:  
  
 
 mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.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]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Re: how to redirect System.out, or a relevant link please

2002-03-22 Thread Sanjay Bahal

Try this:
System.setOut(new PrintStream(new
FileOutputStream(filename,true)));
System.setErr(new PrintStream(new
FileOutputStream(filename,true)));
--- Leila Lappin [EMAIL PROTECTED] wrote:
 Hello everyone,
 
 Could someone please send me a link to find
 information on redirecting system.out and
 system.err.  I've been to
 http://www.jguru.com/faq/view.jsp?EID=302980 they
 suggested reading the relevant discussion on the
 archived mailing list

http://mikal.org/interests/java/tomcat/archive/search?start=60search=how+to+redirect
 ).  I'm still reading through and haven't found the
 answer.
 
 I've setup Logger tag in server.xml and it points
 to org.apache.catalina.logger.FileLogger. I get all
 messages generated by tomcat but nothing from my own
 diagnostics.  

 I'm using tomcat-4.0.2 on Redhat 7.2.
 
 thanks in advance for your help.
 Leila
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet Deploy Problem Help

2002-03-22 Thread Sanjay Bahal

Lance,
Yes- that is what I want to do:
http://.../search/servletName or its mapping.
for each servlet I want to map and call it. Lets say I
have 5 different servlets- I want to have 5 mappings
and call them all by their names.
what is this Front Controller pattern- you have some
kind of an example?

Thanks
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 Sanjay,
 If I understand you're request what you want is
   /search/hello
   /search/abc
   /search/def
 with hello, abc, and def all being servlets. Then
 you want to be able to reach each servlet with the
 url
 http://.../search/servletName.
 
 If this is the case I think you will end up adding a
 servlet-mapping entry
 for each
 servlet you want to call. Unless someone else can
 help.
 
 The other methos is  the Front Controller pattern
 where a single
 Controller/servlet is mapped and it dispatches the
 request on to the
 proper place.
 Lance
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 22, 2002 10:24 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help
 
 
 Lance,
 Thanks.
 Ideally I don't want to call my servlet with /abc.
 In
 this case whatever tag I give it will open the same
 one. However what I need instead is to call
 diffrenet
 servlets with /search/hello/servletalias. How can I
 achieve that.
 Thanks
 Sanjay
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  Now try http://localhost:8080/search/hello/abc
  it should work also.
  getting it to work with just /search/hello gets
 into
  mapping issues I haven't had to work out yet
 sorry.
  Lance
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 12:42 PM
  To: Tomcat Users List
  Subject: RE: Servlet Deploy Problem Help
 
 
  Lance - yes it works thanks a lot.
  But what are other shorter forms that I can use to
  call the servlet. I would hope to call it with
 like
  /search/hello. What has the /hello/* mapping
 bought
  me.
  Thanks
  Sanjay
  --- Lance Smith [EMAIL PROTECTED]
  wrote:
   try
 http://localhost:8080/search/hello/HelloWorld
   let me know if this works.
   Lance
  
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 21, 2002 10:13 AM
   To: Tomcat Users List
   Subject: RE: Servlet Deploy Problem Help
  
  
   Lance,
   So in other words if I may to /hello/* I would
 be
   able
   to call my servelet with /hello? or the full URL
   http://localhost:8080/search/hello? I tried it
 did
   not
   work- requested resource (/hello) is not
  available.
  
   Thanks a lot,
   Sanjay
   --- Lance Smith
 [EMAIL PROTECTED]
   wrote:
Sanjay,
The servlet-mapping is a tag that allows you
 to
   map
a specified pattern to the specified servlet.
   Don't
get me started on the pattern syntax I still
   haven't
taken the time to fully comprehend it. So
   basically
what we told the server was that anytime it
 sees
   the
pattern /hello/ in the context of this app
  send
   it
to the HelloWorld servlet. The anything
 means
anything
you want to type after the /hello/ since we
  told
it to
match on the /hello/.
Lance
   
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:01 AM
To: Tomcat Users List
Subject: RE: Servlet Deploy Problem Help
   
   
Lance Thanks.
What does servlet-mapping mean- is it
 directory
structure or an alias to a servlet.I was
 trying
  to
use
/hello as an alias for the HelloWorld servlet
  and
try
calling it by /hello or by full URL /hello- am
 I
completely off on this. and what is this
   anything?
Thanks again
   
   
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/*/url-pattern
/servlet-mapping
   
Then you  should be able to call it like:
http://localhost:8080/search/hello/anything
   
--- Lance Smith
  [EMAIL PROTECTED]
wrote:
 In you're web.xml change:
 servlet-mapping
  
 servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping

 to :
 servlet-mapping
  
 servlet-nameHelloWorld/servlet-name
   url-pattern/hello/*/url-pattern
 /servlet-mapping

 Then you  should be able to call it like:

 http://localhost:8080/search/hello/anything

 Hope this helps
 Lance


 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 8:21 AM
 To: [EMAIL PROTECTED]
 Subject: Servlet Deploy Problem Help


 I am just restarting this thread. My problem
remains
 unsolved. I am running Tomcat4.01/NT. The
  setup
 should
 be OK as the examples run.
 I am trying to deploy the HelloWorldExample.
 My directory structure is-
 Tomcat4\webapps\search

RE: Servlet mapping question

2002-03-22 Thread Sanjay Bahal

I have a similar issue- albeit simpler. I have two
servlets in one subdir. I have mapped it with
something like-
servlet-mapping
 servlet-nameSearchServlet/servlet-name
 url-pattern/search/*/url-pattern
 /servlet-mapping
As a result of which /search/anything calls the
SearchServlet. How do I map to another servlet in the
same directory. I tried removing the /* and giving a
specific name- the 1st servlet itself fails.
Thanks
Sanjay
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Fri, 22 Mar 2002, Sean LeBlanc wrote:
 
 
  To add even more to this - I can't even get the
 pattern like this
  to work:
 
  url-pattern/c*/url-pattern
 
  anything typed doesn't seem to get recognized and
 used by the
  servlet. Any ideas would be welcome.
 
 
 You might start by consulting the Servlet
 Specification, to see what
 mapping patterns are legal :-).
 http://java.sun.com/products/servlet/download.html
 
 1.  Exact match (/foo or /foo/bar)
 2.  Prefix match (/* or /foo/* or /foo/bar/*)
 3.  Extension match (*.jsp or *.foo)
 4.  Default servlet (/) used if no other mapping
 matches.
 (NOTE:  Tomcat 4 uses this for the file-serving
 servlet,
 so replacing it will remove file serving unless
 you do
 that yourself)
 
 The rules are applied hierarchically -- in other
 words, the container
 checks for exact matches first, then prefix matches,
 ...
 
 In each case, request.getServletPath() will return
 the portion of the
 request URI that was used to map to your servlet. 
 In case (2), anything
 after the matching part will be returned via
 request.getPathInfo().
 
 Craig McClanahan
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

I am just restarting this thread. My problem remains
unsolved. I am running Tomcat4.01/NT. The setup should
be OK as the examples run.
I am trying to deploy the HelloWorldExample. 
My directory structure is-
Tomcat4\webapps\search\WEB-INF\classes
I have my .htm file in the \search directory and my
class in the \classes and my web.xml in the \WEB-INF.
My web.xml looks like this- I have used the example
file to create it-
servlet
  servlet-nameHelloWorld/servlet-name
  description
HelloWorld
  /description
  servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/url-pattern
/servlet-mapping
Is this web.xml correct?

I have not been able to execute my servelt any which
way:
/hello
http://localhost:8080/search/servlet/HelloWorldExample
http://localhost:8080/search/servlet/HelloWorld
http://localhost:8080/search/HelloWorld
I either get a resource not found or 
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)

 My question is how do I exceute it- from the /search
directory or from anywhere else using a full url path.
Thanks a lot,
Sanjay

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Thanks of the insight. The servlet is a HelloWorld
example. The only imports in the class are:
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
I would easily suppose these should be available to
Tomcat. If not what do I do.
Thanks
Sanjay
--- Randy Layman [EMAIL PROTECTED] wrote:
 
   The stack trace you included indicates that you are
 running the
 servlet, but its throwing an exception.
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:21 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet Deploy Problem Help
  
  
  I either get a resource not found or 
  java.util.MissingResourceException: Can't find
 bundle
  for base name LocalStrings, locale en_US
  at
 

java.util.ResourceBundle.throwMissingResourceException(Resourc
  eBundle.java:707)
  at
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
  at
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
  at HelloWorldExample.doGet(Unknown Source)
  
 
   If your servlet wasn't being called then you
 wouldn't see it in the
 stack trace.  I would suggest that you look at how
 you are loading resources
 in your servlet (they are probably not in the
 classpath).
 
   Randy
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Lance Thanks.
What does servlet-mapping mean- is it directory
structure or an alias to a servlet.I was trying to use
/hello as an alias for the HelloWorld servlet and try
calling it by /hello or by full URL /hello- am I
completely off on this. and what is this anything?
Thanks again


servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/*/url-pattern
/servlet-mapping

Then you  should be able to call it like:
http://localhost:8080/search/hello/anything

--- Lance Smith [EMAIL PROTECTED]
wrote:
 In you're web.xml change:
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping
 
 to :
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/*/url-pattern
 /servlet-mapping
 
 Then you  should be able to call it like:
 http://localhost:8080/search/hello/anything
 
 Hope this helps
 Lance
 
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 8:21 AM
 To: [EMAIL PROTECTED]
 Subject: Servlet Deploy Problem Help
 
 
 I am just restarting this thread. My problem remains
 unsolved. I am running Tomcat4.01/NT. The setup
 should
 be OK as the examples run.
 I am trying to deploy the HelloWorldExample.
 My directory structure is-
 Tomcat4\webapps\search\WEB-INF\classes
 I have my .htm file in the \search directory and my
 class in the \classes and my web.xml in the
 \WEB-INF.
 My web.xml looks like this- I have used the example
 file to create it-
 servlet
   servlet-nameHelloWorld/servlet-name
 description
   HelloWorld
 /description
  
 servlet-classHelloWorldExample/servlet-class
 /servlet
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping
 Is this web.xml correct?
 
 I have not been able to execute my servelt any which
 way:
 /hello

http://localhost:8080/search/servlet/HelloWorldExample
 http://localhost:8080/search/servlet/HelloWorld
 http://localhost:8080/search/HelloWorld
 I either get a resource not found or
 java.util.MissingResourceException: Can't find
 bundle
 for base name LocalStrings, locale en_US
   at

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
 07)
   at

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
   at

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
   at HelloWorldExample.doGet(Unknown Source)
 
  My question is how do I exceute it- from the
 /search
 directory or from anywhere else using a full url
 path.
 Thanks a lot,
 Sanjay
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Lance,
So in other words if I may to /hello/* I would be able
to call my servelet with /hello? or the full URL
http://localhost:8080/search/hello? I tried it did not
work- requested resource (/hello) is not available.

Thanks a lot,
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 Sanjay,
 The servlet-mapping is a tag that allows you to map
 a specified pattern to the specified servlet. Don't
 get me started on the pattern syntax I still haven't
 taken the time to fully comprehend it. So basically
 what we told the server was that anytime it sees the
 pattern /hello/ in the context of this app send it
 to the HelloWorld servlet. The anything means
 anything
 you want to type after the /hello/ since we told
 it to
 match on the /hello/.
 Lance
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 9:01 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help
 
 
 Lance Thanks.
 What does servlet-mapping mean- is it directory
 structure or an alias to a servlet.I was trying to
 use
 /hello as an alias for the HelloWorld servlet and
 try
 calling it by /hello or by full URL /hello- am I
 completely off on this. and what is this anything?
 Thanks again
 
 
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/*/url-pattern
 /servlet-mapping
 
 Then you  should be able to call it like:
 http://localhost:8080/search/hello/anything
 
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  In you're web.xml change:
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
 
  to :
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/*/url-pattern
  /servlet-mapping
 
  Then you  should be able to call it like:
  http://localhost:8080/search/hello/anything
 
  Hope this helps
  Lance
 
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 8:21 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet Deploy Problem Help
 
 
  I am just restarting this thread. My problem
 remains
  unsolved. I am running Tomcat4.01/NT. The setup
  should
  be OK as the examples run.
  I am trying to deploy the HelloWorldExample.
  My directory structure is-
  Tomcat4\webapps\search\WEB-INF\classes
  I have my .htm file in the \search directory and
 my
  class in the \classes and my web.xml in the
  \WEB-INF.
  My web.xml looks like this- I have used the
 example
  file to create it-
  servlet
servlet-nameHelloWorld/servlet-name
description
  HelloWorld
/description
 
  servlet-classHelloWorldExample/servlet-class
  /servlet
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
  Is this web.xml correct?
 
  I have not been able to execute my servelt any
 which
  way:
  /hello
 

http://localhost:8080/search/servlet/HelloWorldExample
  http://localhost:8080/search/servlet/HelloWorld
  http://localhost:8080/search/HelloWorld
  I either get a resource not found or
  java.util.MissingResourceException: Can't find
  bundle
  for base name LocalStrings, locale en_US
  at
 

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
  07)
  at
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
  at
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
  at HelloWorldExample.doGet(Unknown Source)
 
   My question is how do I exceute it- from the
  /search
  directory or from anywhere else using a full url
  path.
  Thanks a lot,
  Sanjay
 
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.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]
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Randy,
Yes that was the problem.Now when I give the complete
path-http://localhost:8080/search/servlet/HelloWorldExample
I can execute the class. 
But I still can not execute the class with:
/hello or http://localhost:8080/search/HelloWorld
or http://localhost:8080/search/servlet/HelloWorld
Thanks very much again,
Sanjay
--- Randy Layman [EMAIL PROTECTED] wrote:
 
   Your problem isn't in the loaded classes (that
 would be a class not
 found).  Instead look at where you are calling the
 method
 java.util.ResourceBundle.getBundle.  The parameter
 you are passing in
 references a resource that Tomcat can't find.
 
   Randy
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:56 AM
  To: Tomcat Users List
  Subject: RE: Servlet Deploy Problem Help
  
  
  Thanks of the insight. The servlet is a HelloWorld
  example. The only imports in the class are:
  import java.io.*;
  import java.text.*;
  import java.util.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  I would easily suppose these should be available
 to
  Tomcat. If not what do I do.
  Thanks
  Sanjay
  --- Randy Layman [EMAIL PROTECTED]
 wrote:
   
 The stack trace you included indicates that you
 are
   running the
   servlet, but its throwing an exception.
   
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: Servlet Deploy Problem Help


I either get a resource not found or 
java.util.MissingResourceException: Can't find
   bundle
for base name LocalStrings, locale en_US
at
   
  
 

java.util.ResourceBundle.throwMissingResourceException(Resourc
eBundle.java:707)
at
   
  
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
   
  
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)

   
 If your servlet wasn't being called then you
   wouldn't see it in the
   stack trace.  I would suggest that you look at
 how
   you are loading resources
   in your servlet (they are probably not in the
   classpath).
   
 Randy
   
   --
   To unsubscribe:  
  
 mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards®
  http://movies.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Lance - yes it works thanks a lot.
But what are other shorter forms that I can use to
call the servlet. I would hope to call it with like
/search/hello. What has the /hello/* mapping bought
me.
Thanks
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 try http://localhost:8080/search/hello/HelloWorld
 let me know if this works.
 Lance
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 10:13 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help
 
 
 Lance,
 So in other words if I may to /hello/* I would be
 able
 to call my servelet with /hello? or the full URL
 http://localhost:8080/search/hello? I tried it did
 not
 work- requested resource (/hello) is not available.
 
 Thanks a lot,
 Sanjay
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  Sanjay,
  The servlet-mapping is a tag that allows you to
 map
  a specified pattern to the specified servlet.
 Don't
  get me started on the pattern syntax I still
 haven't
  taken the time to fully comprehend it. So
 basically
  what we told the server was that anytime it sees
 the
  pattern /hello/ in the context of this app send
 it
  to the HelloWorld servlet. The anything means
  anything
  you want to type after the /hello/ since we told
  it to
  match on the /hello/.
  Lance
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:01 AM
  To: Tomcat Users List
  Subject: RE: Servlet Deploy Problem Help
 
 
  Lance Thanks.
  What does servlet-mapping mean- is it directory
  structure or an alias to a servlet.I was trying to
  use
  /hello as an alias for the HelloWorld servlet and
  try
  calling it by /hello or by full URL /hello- am I
  completely off on this. and what is this
 anything?
  Thanks again
 
 
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/*/url-pattern
  /servlet-mapping
 
  Then you  should be able to call it like:
  http://localhost:8080/search/hello/anything
 
  --- Lance Smith [EMAIL PROTECTED]
  wrote:
   In you're web.xml change:
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/url-pattern
   /servlet-mapping
  
   to :
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/*/url-pattern
   /servlet-mapping
  
   Then you  should be able to call it like:
   http://localhost:8080/search/hello/anything
  
   Hope this helps
   Lance
  
  
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 21, 2002 8:21 AM
   To: [EMAIL PROTECTED]
   Subject: Servlet Deploy Problem Help
  
  
   I am just restarting this thread. My problem
  remains
   unsolved. I am running Tomcat4.01/NT. The setup
   should
   be OK as the examples run.
   I am trying to deploy the HelloWorldExample.
   My directory structure is-
   Tomcat4\webapps\search\WEB-INF\classes
   I have my .htm file in the \search directory and
  my
   class in the \classes and my web.xml in the
   \WEB-INF.
   My web.xml looks like this- I have used the
  example
   file to create it-
   servlet
 servlet-nameHelloWorld/servlet-name
   description
 HelloWorld
   /description
  
   servlet-classHelloWorldExample/servlet-class
   /servlet
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/url-pattern
   /servlet-mapping
   Is this web.xml correct?
  
   I have not been able to execute my servelt any
  which
   way:
   /hello
  
 

http://localhost:8080/search/servlet/HelloWorldExample
   http://localhost:8080/search/servlet/HelloWorld
   http://localhost:8080/search/HelloWorld
   I either get a resource not found or
   java.util.MissingResourceException: Can't find
   bundle
   for base name LocalStrings, locale en_US
 at
  
 

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
   07)
 at
  
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
 at
  
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
 at HelloWorldExample.doGet(Unknown Source)
  
My question is how do I exceute it- from the
   /search
   directory or from anywhere else using a full url
   path.
   Thanks a lot,
   Sanjay
  
  
 __
   Do You Yahoo!?
   Yahoo! Movies - coverage of the 74th Academy
  Awards.
   http://movies.yahoo.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]
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.com

Tomact Servlet Deploy Problem Help

2002-03-20 Thread Sanjay Bahal

I installed Tomcat4.01/NT the examples run-
webapps/servlets.
I am trying to deploy my example it does not run.
I have directory structure
/webapps/search/Web-inf/classes.
Under /search I have my html file hello.htm-
td VALIGN=TOP WIDTH=30%a href=/helloimg
SRC=/images/execute.gif HSPACE=4 BORDER=0 
align=TOP/aa
href=/servlet/HelloWorldExampleExecute/a/td

I have my class in /classes. Under Web-inf I have my
web.xml-
servlet
  servlet-nameHelloWorld/servlet-name
  description
HelloWorld
  /description
  servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/url-pattern
/servlet-mapping

When I run I get the error- The requested resource
(/hello) is not available. The othet tag also fails. I
have restarted etc Tomcat.

Am I not doing something right?

How do I turn on debugging/logging etc on the server.
Thanks
Sanjay




__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

Kaikuo Luo,
Thanks. Check my mail- I am doing all that. Is the
name WEN-INF case sensitive?
Sanjay
--- Law Kaikuo [EMAIL PROTECTED] wrote:
 Hi Sanjay Bahal,
 
   Maybe you should create a subdirectory under
 WEN-INF called classes and put
 you java class there. You need to specify the fully
 qualified pathe for your
 servlet class in the web.xml file and set the
 mapping. Use the map name in any
 request.
 
   Kaikuo Luo
 
 Sanjay Bahal [EMAIL PROTECTED] wrote:
 I installed Tomcat4.01/NT the examples run-
 webapps/servlets.
 I am trying to deploy my example it does not run.
 I have directory structure
 /webapps/search/Web-inf/classes.
 Under /search I have my html file hello.htm-
 td VALIGN=TOP WIDTH=30%a href=/helloimg
 SRC=/images/execute.gif HSPACE=4 BORDER=0 
 align=TOP/aa
 href=/servlet/HelloWorldExampleExecute/a/td
 
 I have my class in /classes. Under Web-inf I have my
 web.xml-
 servlet
   servlet-nameHelloWorld/servlet-name
 description
   HelloWorld
 /description
  
 servlet-classHelloWorldExample/servlet-class
 /servlet
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping
 
 When I run I get the error- The requested resource
 (/hello) is not available. The othet tag also fails.
 I
 have restarted etc Tomcat.
 
 Am I not doing something right?
 
 How do I turn on debugging/logging etc on the
 server.
 Thanks
 Sanjay
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

Thanks Lance.
I made it all caps- That took me a step further. 

Note to Windows(NT) users- windows shows the name in
mixed case in explorer- even though you may type it in
caps if you look at properties and DOS-NAME it will
show the actual name- uppercase in this case. 
---
I got an error. This error was a servlet-mapping tag
was not closed. I had used the sample web.xml for my
web.xml and it had a comment with a servlet-mapping
tag. I got rid of that. 
That brought me to my next error. The part of error
that I could garb on the DOS screen is as below. How
do I log the errors in a log file?
at
org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
S
ource)
at
org.apache.catalina.startup.ContextConfig.start(Unknown
Source)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
Sour
ce)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
at
org.apache.catalina.core.StandardContext.start(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
Sourc
e)
at
org.apache.catalina.core.ContainerBase.addChild(Unknown
Source)
at
org.apache.catalina.core.StandardHost.addChild(Unknown
Source)
at
org.apache.catalina.core.StandardHostDeployer.install(Unknown
Source)

at
org.apache.catalina.core.StandardHost.install(Unknown
Source)
at
org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
Sour
ce)
at
org.apache.catalina.startup.HostConfig.deployApps(Unknown
Source)
at
org.apache.catalina.startup.HostConfig.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)
[ERROR] Digester - -Parse Fatal Error at line 145
column 3: The content of eleme
nts must consist of well-formed character data or
markup. org.xml.sax.SAXParseE
xception: The content of elements must consist of
well-formed character data or
markup.

Thanks a lot,
Sanjay

--- Lance Smith [EMAIL PROTECTED]
wrote:
 Yes it must be ALL capital letters.
 
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 20, 2002 11:14 AM
 To: Tomcat Users List
 Subject: Re: [Tomact Servlet Deploy Problem Help]
 
 
 Kaikuo Luo,
 Thanks. Check my mail- I am doing all that. Is the
 name WEN-INF case sensitive?
 Sanjay
 --- Law Kaikuo [EMAIL PROTECTED] wrote:
  Hi Sanjay Bahal,
  
Maybe you should create a subdirectory under
  WEN-INF called classes and put
  you java class there. You need to specify the
 fully
  qualified pathe for your
  servlet class in the web.xml file and set the
  mapping. Use the map name in any
  request.
  
Kaikuo Luo
  
  Sanjay Bahal [EMAIL PROTECTED] wrote:
  I installed Tomcat4.01/NT the examples run-
  webapps/servlets.
  I am trying to deploy my example it does not run.
  I have directory structure
  /webapps/search/Web-inf/classes.
  Under /search I have my html file hello.htm-
  td VALIGN=TOP WIDTH=30%a href=/helloimg
  SRC=/images/execute.gif HSPACE=4 BORDER=0 
  align=TOP/aa
  href=/servlet/HelloWorldExampleExecute/a/td
  
  I have my class in /classes. Under Web-inf I have
 my
  web.xml-
  servlet
servlet-nameHelloWorld/servlet-name
description
  HelloWorld
/description
   
  servlet-classHelloWorldExample/servlet-class
  /servlet
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
  
  When I run I get the error- The requested resource
  (/hello) is not available. The othet tag also
 fails.
  I
  have restarted etc Tomcat.
  
  Am I not doing something right?
  
  How do I turn on debugging/logging etc on the
  server.
  Thanks
  Sanjay
  
  
  
  
  __
  Do You Yahoo!?
  Yahoo! Sports - live college hoops coverage
  http://sports.yahoo.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]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Sports - live college hoops coverage
 http://sports.yahoo.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]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

I took care of this last error- some malform in the
web.xml. 
Now I am back to square 1- my server starts but when I
execute it gives error:
1. http://localhost:8080/servlet/HelloWorld
The requested resource (/servlet/HelloWorld) is not
available.
2. /hello 
The requested resource (/hello) is not available.
Thanks a lot,
Sanjay
--- Sanjay Bahal [EMAIL PROTECTED] wrote:
 Thanks Lance.
 I made it all caps- That took me a step further. 
 
 Note to Windows(NT) users- windows shows the name in
 mixed case in explorer- even though you may type it
 in
 caps if you look at properties and DOS-NAME it will
 show the actual name- uppercase in this case. 
 ---
 I got an error. This error was a servlet-mapping
 tag
 was not closed. I had used the sample web.xml for my
 web.xml and it had a comment with a
 servlet-mapping
 tag. I got rid of that. 
 That brought me to my next error. The part of error
 that I could garb on the DOS screen is as below. How
 do I log the errors in a log file?
 at

org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
 S
 ource)
 at

org.apache.catalina.startup.ContextConfig.start(Unknown
 Source)
 at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
 Sour
 ce)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
 Source)
 at

org.apache.catalina.core.StandardContext.start(Unknown
 Source)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
 Sourc
 e)
 at

org.apache.catalina.core.ContainerBase.addChild(Unknown
 Source)
 at

org.apache.catalina.core.StandardHost.addChild(Unknown
 Source)
 at

org.apache.catalina.core.StandardHostDeployer.install(Unknown
 Source)
 
 at

org.apache.catalina.core.StandardHost.install(Unknown
 Source)
 at

org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
 Sour
 ce)
 at

org.apache.catalina.startup.HostConfig.deployApps(Unknown
 Source)
 at
 org.apache.catalina.startup.HostConfig.run(Unknown
 Source)
 at java.lang.Thread.run(Thread.java:484)
 [ERROR] Digester - -Parse Fatal Error at line 145
 column 3: The content of eleme
 nts must consist of well-formed character data or
 markup. org.xml.sax.SAXParseE
 xception: The content of elements must consist of
 well-formed character data or
 markup.
 
 Thanks a lot,
 Sanjay
 
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  Yes it must be ALL capital letters.
  
  
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 20, 2002 11:14 AM
  To: Tomcat Users List
  Subject: Re: [Tomact Servlet Deploy Problem Help]
  
  
  Kaikuo Luo,
  Thanks. Check my mail- I am doing all that. Is the
  name WEN-INF case sensitive?
  Sanjay
  --- Law Kaikuo [EMAIL PROTECTED] wrote:
   Hi Sanjay Bahal,
   
 Maybe you should create a subdirectory under
   WEN-INF called classes and put
   you java class there. You need to specify the
  fully
   qualified pathe for your
   servlet class in the web.xml file and set the
   mapping. Use the map name in any
   request.
   
 Kaikuo Luo
   
   Sanjay Bahal [EMAIL PROTECTED] wrote:
   I installed Tomcat4.01/NT the examples run-
   webapps/servlets.
   I am trying to deploy my example it does not
 run.
   I have directory structure
   /webapps/search/Web-inf/classes.
   Under /search I have my html file hello.htm-
   td VALIGN=TOP WIDTH=30%a href=/helloimg
   SRC=/images/execute.gif HSPACE=4 BORDER=0 
   align=TOP/aa
  
 href=/servlet/HelloWorldExampleExecute/a/td
   
   I have my class in /classes. Under Web-inf I
 have
  my
   web.xml-
   servlet
 servlet-nameHelloWorld/servlet-name
   description
 HelloWorld
   /description

   servlet-classHelloWorldExample/servlet-class
   /servlet
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/url-pattern
   /servlet-mapping
   
   When I run I get the error- The requested
 resource
   (/hello) is not available. The othet tag also
  fails.
   I
   have restarted etc Tomcat.
   
   Am I not doing something right?
   
   How do I turn on debugging/logging etc on the
   server.
   Thanks
   Sanjay
   
   
   
   
  
 __
   Do You Yahoo!?
   Yahoo! Sports - live college hoops coverage
   http://sports.yahoo.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]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Sports - live college hoops coverage
  http://sports.yahoo.com/
  
  --
  To unsubscribe:  
 
 mailto:[EMAIL PROTECTED

RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

I further tried using the tag-
http://localhost:8080/search/servlet/HelloWorldExample
This also errors out:
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)
Thanks,
Sanjay
--- Sanjay Bahal [EMAIL PROTECTED] wrote:
 Thanks Charlie I tried both it did not work. My
 web.xml looks like this:
 servlet
   servlet-nameHelloWorld/servlet-name
 
 servlet-classHelloWorldExample/servlet-class
  /servlet
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping
 
 So I have mapped by class to a servlet and then
 mapped
 
 to urlpattern /hello. My understanding is (correct
 me)
 if I have html in the webapp/myapp/ directory I
 should
 be able to call with /hello or HelloWorld with a tag
 like- /hello or /HelloWorld. On the other hand if I
 try- http://localhost:8080/search/hello I get this
 error( search is myapp dir under webapps):
 java.util.MissingResourceException: Can't find
 bundle
 for base name LocalStrings, locale en_US
   at

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
   at

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
   at

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
   at HelloWorldExample.doGet(Unknown Source)
 
 
 If I try http://localhost:8080/search/HelloWorld I
 get
 Resource not found error.
 Thanks a lot.
 Sanjay
 
 
 --- Cox, Charlie [EMAIL PROTECTED] wrote:
  
  
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, March 20, 2002 1:28 PM
   To: Tomcat Users List
   Subject: RE: [Tomact Servlet Deploy Problem
 Help]
   
   
   I took care of this last error- some malform in
  the
   web.xml. 
   Now I am back to square 1- my server starts but
  when I
   execute it gives error:
   1. http://localhost:8080/servlet/HelloWorld
   The requested resource (/servlet/HelloWorld) is
  not
   available.
  
  try:
  http://localhost:8080/servlet/HelloWorldClass
  
  you need the actual class name here
  
   2. /hello 
   The requested resource (/hello) is not
 available.
  try:
  http://localhost:8080/hello/world
  
  This mapping means that anything in the 'hello'
  directory should go to the
  servlet.
  
   Thanks a lot,
   Sanjay
   --- Sanjay Bahal [EMAIL PROTECTED] wrote:
Thanks Lance.
I made it all caps- That took me a step
 further.
  

Note to Windows(NT) users- windows shows the
  name in
mixed case in explorer- even though you may
 type
  it
in
caps if you look at properties and DOS-NAME it
  will
show the actual name- uppercase in this case. 
---
I got an error. This error was a
  servlet-mapping
tag
was not closed. I had used the sample web.xml
  for my
web.xml and it had a comment with a
servlet-mapping
tag. I got rid of that. 
That brought me to my next error. The part of
  error
that I could garb on the DOS screen is as
 below.
  How
do I log the errors in a log file?
at
   
  
 

org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
S
ource)
at
   
  
 

org.apache.catalina.startup.ContextConfig.start(Unknown
Source)
at
   
  
 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
Sour
ce)
at
   
  
 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
at
   
  
 

org.apache.catalina.core.StandardContext.start(Unknown
Source)
at
   
  
 

org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
Sourc
e)
at
   
  
 

org.apache.catalina.core.ContainerBase.addChild(Unknown
Source)
at
   
  
 

org.apache.catalina.core.StandardHost.addChild(Unknown
Source)
at
   
  
 

org.apache.catalina.core.StandardHostDeployer.install(Unknown
Source)

at
   
  
 

org.apache.catalina.core.StandardHost.install(Unknown
Source)
at
   
  
 

org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
Sour
ce)
at
   
  
 

org.apache.catalina.startup.HostConfig.deployApps(Unknown
Source)
at
   
  org.apache.catalina.startup.HostConfig.run(Unknown
Source)
at
 java.lang.Thread.run(Thread.java:484)
[ERROR] Digester - -Parse Fatal Error at line
  145
column 3: The content of eleme
nts must consist of well-formed character data
  or
markup. org.xml.sax.SAXParseE
xception: The content of elements must consist
 
=== message truncated ===


__
Do

Re: STARTING TOMCAT

2001-11-30 Thread Sanjay Bahal

if you http to it then tomact page should show:
http://loclahost:8080/
HTH
--- Daliso Zuze [EMAIL PROTECTED] wrote:
 Thanks Avi,
 
 what exactly should it show if tomcat is running?
 
 Daliso
 
 - Original Message - 
 From: Avi Green [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Friday, November 30, 2001 3:20 AM
 Subject: Re: STARTING TOMCAT
 
 
   IS THERE ANY CONFIRMATION THAT YOU CAN GET THAT
 TOMCAT IS ACTUALLY
   RUNNING APART FROM TRYING http://localhost:8080
  
  1.  Check ps
  
  $ ps aguwwx |grep -i tomcat
  
  2.  Check netstat
  
  $ netstat -elpt
  
  
  

==
   = Avi Green :-) avi at sputnik7.com (-: 212
 320-3735 =
     Unix SysAdmin  System Specialist 
 =
  
   http://www.sputnik7.com - chronic online
 entertainment
   http://www.res.com - The Future of Filmmaking
http://www.epitonic.com - Hi Quality Free MP3
 Music
   http://www.we-deliver.tv - Log on, order in,
 smoke out
  
  --
  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]
 


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




RE: CLASSPATH for web apps - and the answer is?

2001-11-30 Thread Sanjay Bahal

Larry,
You are right. It was the files in the jre/ext. I do
not when I had ever put them there- but I removed them
and now everything works like a charm.
Thanks a lot,
Sanjay
--- Larry Isaacs [EMAIL PROTECTED] wrote:
 I think the sealing violation means that a class was
 loaded
 from a sealed jar and another class that is in
 this jar
 was found and loaded from some other jar, violating
 the
 sealing.  The error also seems related XML.  The
 only
 jar I am aware of are certain versions of
 crimson.jar,
 I'm not sure which.  The crimson.jar in
 lib\container
 of Tomcat 3.3 is not sealed.
 
 Again, I am assuming you CLASSPATH doesn't matter
 because the unmodified tomcat.bat ignores it.  I am
 also assuming you haven't added any jars to Tomcat
 3.3's
 lib directories.  This only leaves the jre/lib/ext
 jars as the source of additional jars.  Does this
 directory contain any jars?
 
 Cheers,
 Larry
 
 P.S. Concerning your CLASSPATH setting, rt.jar isn't
 in C:\jdk1.3\lib, it's in C:\jdk1.3\jre\lib. 
 However,
 it shouldn't be necessary to have rt.jar in
 CLASSPATH.
 (Note: A pre-release version of Tomcat 3.3 needed it
 if you were using Jikes to compile JSP files.) The
 JDK
 (or JRE) will include this jar in the boot
 classloader
 automatically.  The boot classloader takes
 prioritly
 over the CLASSPATH classloader, so having it in
 CLASSPATH
 has no effect.
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, November 29, 2001 9:39 AM
  To: Tomcat Users List
  Subject: RE: CLASSPATH for web apps - and the
 answer is?
  
  
  Larry,
  Thanks.
  The /ext should be the same as I it is the same
  version of jdk1.3. But another symptom on my win98
 m/c
  is I get this very same error:
  java.lang.SecurityException: sealing violation
  at 
 

java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
  even outside of tomcat - say when I try to open a
 URL?
  
  I simply can't figure it out. I perhaps would try
  re-installing the jdk.
  TIA
  Sanjay
  --- Larry Isaacs [EMAIL PROTECTED] wrote:
   I think you will be better off if we can get
 Tomcat
   3.3
   working on your Win98 machine.  I will therefore
   assume that your CLASSPATH setting is irrelavent
 to
   to problem.
   
   What do you have in the C:\jdk1.3\jre\lib\ext
   directory?  Any differences between the jars
   in your Win98 jre\lib\ext and the Win2k
   jre\lib\ext.
   
   If you have jars in the jre\lib\ext directory,
   you might try moving them to a temporary
 location
   and then try starting Tomcat 3.3 on Win98 to
   see what happens.
   
   Cheers,
   Larry
   
   
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 9:22 PM
To: Tomcat Users List
Subject: RE: CLASSPATH for web apps - and the
   answer is?


Larry,
I tried it- it did not work. I could not even
 get
   the
log file:
In tomcat 3.2 and tomact 3.3 I set the
 logging-
   but it
does not write to the log
Logger name=tc_log path=logs/tomcat.log
verbosityLevel = DEBUG 
/  
In 3.2 I get this error trying to run tomcat:
FATAL: configuration error
java.lang.SecurityException: sealing violation
at
   
  
 

java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at
   
  
 

java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at
   
  
 

java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at
   
 java.security.AccessController.doPrivileged(Native
Method)
at
   
  
 

java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
   
  
 

java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at
   
  
 

java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
   
  
 

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native
 Method)
at
 java.lang.Class.forName(Class.java:120)
at
   
  
 

javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor
y.java:92)
at
   
  
 

org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
at
   
  
 

org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at
   
  
 

org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

On 3.3  I can not grab the error.
My system classpath is:
   
  
 

CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;
   
  
 c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;
   
  
 c:\wstk\wsdl4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;
c:\wstk\lib\xss4j.jar;
 c:\wstk\soap\lib\mail.jar;
   
  
 

c:\wstk\soap\lib\activation.jar;c:\webservices\classes;
c:\jsse\lib\jcert.jar; c:\jsse\lib\jnet.jar;
   
  
 

c:\jsse\lib\jsse.jar;c:\axis\lib\axis.jar;c:\axis\lib\log4j-gump.jar;
 
=== message truncated ===


__
Do You Yahoo!?
Yahoo

RE: CLASSPATH for web apps - and the answer is?

2001-11-29 Thread Sanjay Bahal

Larry,
Thanks.
The /ext should be the same as I it is the same
version of jdk1.3. But another symptom on my win98 m/c
is I get this very same error:
java.lang.SecurityException: sealing violation
at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
even outside of tomcat - say when I try to open a URL?

I simply can't figure it out. I perhaps would try
re-installing the jdk.
TIA
Sanjay
--- Larry Isaacs [EMAIL PROTECTED] wrote:
 I think you will be better off if we can get Tomcat
 3.3
 working on your Win98 machine.  I will therefore
 assume that your CLASSPATH setting is irrelavent to
 to problem.
 
 What do you have in the C:\jdk1.3\jre\lib\ext
 directory?  Any differences between the jars
 in your Win98 jre\lib\ext and the Win2k
 jre\lib\ext.
 
 If you have jars in the jre\lib\ext directory,
 you might try moving them to a temporary location
 and then try starting Tomcat 3.3 on Win98 to
 see what happens.
 
 Cheers,
 Larry
 
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, November 28, 2001 9:22 PM
  To: Tomcat Users List
  Subject: RE: CLASSPATH for web apps - and the
 answer is?
  
  
  Larry,
  I tried it- it did not work. I could not even get
 the
  log file:
  In tomcat 3.2 and tomact 3.3 I set the logging-
 but it
  does not write to the log
  Logger name=tc_log path=logs/tomcat.log
  verbosityLevel = DEBUG 
  /  
  In 3.2 I get this error trying to run tomcat:
  FATAL: configuration error
  java.lang.SecurityException: sealing violation
  at
 

java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
  at
 

java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at
 

java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at
  java.security.AccessController.doPrivileged(Native
  Method)
  at
 

java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at
 

java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at
 

java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at
 

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at
 

javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor
  y.java:92)
  at
 

org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
  at
 

org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
  at
 

org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
  
  On 3.3  I can not grab the error.
  My system classpath is:
 

CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;
 
 c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;
 
 c:\wstk\wsdl4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;
  c:\wstk\lib\xss4j.jar; c:\wstk\soap\lib\mail.jar;
 

c:\wstk\soap\lib\activation.jar;c:\webservices\classes;
  c:\jsse\lib\jcert.jar; c:\jsse\lib\jnet.jar;
 

c:\jsse\lib\jsse.jar;c:\axis\lib\axis.jar;c:\axis\lib\log4j-gump.jar;
  
  
  I have not made any change the tomcat.bat file in
 3.2
  or 3.3.
  When I try the same thing on my win2000 machine
  everything works great. There seems to be somethng
  funky with win98.
  
  TIA
  Sanjay
  --- Larry Isaacs [EMAIL PROTECTED] wrote:
   Is the tomcat.bat unmodified?
   
   Note that in its unmodified state, it contains:
   
   set
 CLASSPATH=%TOMCAT_INSTALL%\lib\tomcat.jar
   
   which replaces any CLASSPATH setting in your
   environment
   (your CLASSPATH setting is saved and restored
   however).
   The recommended procedure for adding classes to
   Tomcat 3.3
   is documented at:
   
  
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.htm
  l#configuring_classes
   
   The stacktrace isn't complete and doesn't show
 the
   error.  In server.xml, you can add:
   
   path=logs/tomcat.log
   
   to the
   
   LogSetter name=tc_log ... /
   
   entry to capture Tomcat's log output in a file. 
   Hopefully
   the stack trace will appear in the tomcat.log
 file.
   
   Cheers,
   Larry
   
-Original Message-
From: Sanjay bahal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 12:01 AM
To: Tomcat Users List
Subject: RE: CLASSPATH for web apps - and the
   answer is?


Larry,
I am on win98, jdk1.3, Tomcat3.3. I have my
TOMCAT_HOME and JAVA_HOME setup.
My st\ystem classpath is:
   
  
 

CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;
   
  
 c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;
   
  
 

c:\wstk\wsdl4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;c:\w
   
  
 

stk\lib\xss4j.jar;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\a
ctivation.jar;c:\webservices\classes;
   
  
 

c:\jsse\lib\jcert.jar;c:\jsse\lib\jnet.jar;c:\jsse\lib\jsse.ja
r;c:\axis\lib\axis.jar;
Note: I removed jaxp, parser, crimso.jar from
 the
classpath.
I run tomcat c:\tomcat run
The error I get is: [this is the best I can
 grab

Re: STARTING TOMCAT

2001-11-29 Thread Sanjay Bahal

It is at the bottom of evry mail.
S
--- Saran Shalini [EMAIL PROTECTED] wrote:
 How do I unsubscibe this service ??
 - Original Message - 
 From: David Smith [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Thursday, November 29, 2001 12:59 PM
 Subject: Re: STARTING TOMCAT
 
 
 Number one place to take a look is catalina.out in
 the $CATALINA_HOME/logs 
 directory.  If the TC is failing on start, it'll
 show there.
 
 --David
 
 On Thursday 29 November 2001 11:46 am, you wrote:
  IS THERE ANY CONFIRMATION THAT YOU CAN GET THAT
 TOMCAT IS ACTUALLY
  RUNNING APART FROM TRYING
  http://localhost:8080
 
  I've tried starting up tomcat on SuSE linx 6.2,
 everything seemed
  alright but no response on localhost:8080,
 
  I don't know what to try next?
 
  What should I be looking for in the log file?
 
  Daliso Zuze
  University of Namibia
  +264 81 248 4931
 
 
  --
  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]
 


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




RE: CLASSPATH for web apps - and the answer is?

2001-11-28 Thread Sanjay Bahal

Larry,
I tried it- it did not work. I could not even get the
log file:
In tomcat 3.2 and tomact 3.3 I set the logging- but it
does not write to the log
Logger name=tc_log path=logs/tomcat.log
verbosityLevel = DEBUG 
/  
In 3.2 I get this error trying to run tomcat:
FATAL: configuration error
java.lang.SecurityException: sealing violation
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92)
at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
at
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

On 3.3  I can not grab the error.
My system classpath is:
CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;
c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;
c:\wstk\wsdl4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;
c:\wstk\lib\xss4j.jar; c:\wstk\soap\lib\mail.jar;
c:\wstk\soap\lib\activation.jar;c:\webservices\classes;
c:\jsse\lib\jcert.jar; c:\jsse\lib\jnet.jar;
c:\jsse\lib\jsse.jar;c:\axis\lib\axis.jar;c:\axis\lib\log4j-gump.jar;


I have not made any change the tomcat.bat file in 3.2
or 3.3.
When I try the same thing on my win2000 machine
everything works great. There seems to be somethng
funky with win98.

TIA
Sanjay
--- Larry Isaacs [EMAIL PROTECTED] wrote:
 Is the tomcat.bat unmodified?
 
 Note that in its unmodified state, it contains:
 
 set CLASSPATH=%TOMCAT_INSTALL%\lib\tomcat.jar
 
 which replaces any CLASSPATH setting in your
 environment
 (your CLASSPATH setting is saved and restored
 however).
 The recommended procedure for adding classes to
 Tomcat 3.3
 is documented at:
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes
 
 The stacktrace isn't complete and doesn't show the
 error.  In server.xml, you can add:
 
 path=logs/tomcat.log
 
 to the
 
 LogSetter name=tc_log ... /
 
 entry to capture Tomcat's log output in a file. 
 Hopefully
 the stack trace will appear in the tomcat.log file.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Sanjay bahal [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, November 28, 2001 12:01 AM
  To: Tomcat Users List
  Subject: RE: CLASSPATH for web apps - and the
 answer is?
  
  
  Larry,
  I am on win98, jdk1.3, Tomcat3.3. I have my
  TOMCAT_HOME and JAVA_HOME setup.
  My st\ystem classpath is:
 

CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;
 
 c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;
 

c:\wstk\wsdl4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;c:\w
 

stk\lib\xss4j.jar;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\a
  ctivation.jar;c:\webservices\classes;
 

c:\jsse\lib\jcert.jar;c:\jsse\lib\jnet.jar;c:\jsse\lib\jsse.ja
  r;c:\axis\lib\axis.jar;
  Note: I removed jaxp, parser, crimso.jar from the
  classpath.
  I run tomcat c:\tomcat run
  The error I get is: [this is the best I can grab
 from
  the DOS window]-
  
  at
 

org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
  Source)
  at
 

org.apache.tomcat.startup.EmbededTomcat.execute(Unknown
  Source)
  at java.lang.reflect.Method.invoke(Native
  Method)
  at
 

org.apache.tomcat.util.IntrospectionUtils.execute(Unknown
  Source)
  at
  org.apache.tomcat.startup.Main.execute(Unknown
 Source)
  at
 org.apache.tomcat.startup.Main.main(Unknown
  Source)
  Guessed home=C:\tomcat
  java.lang.reflect.InvocationTargetException:
  org.apache.tomcat.core.TomcatExcept
  ion: EmbededTomcat.initContextManager
  at
 

org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown
  Source)
  at
 

org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown
  Source)
  at
 

org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown
  Source)
  at
 

org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown
  Source)
  at
  java.security.AccessController.doPrivileged(Native
  Method)
  at
 

org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
  Source)
  at
 

org.apache.tomcat.startup.EmbededTomcat.execute(Unknown
  Source)
  at java.lang.reflect.Method.invoke(Native
  Method)
  at
 

org.apache.tomcat.util.IntrospectionUtils.execute(Unknown
  Source)
  at
  org.apache.tomcat.startup.Main.execute(Unknown
 Source

RE: CLASSPATH for web apps - and the answer is?

2001-11-27 Thread Sanjay bahal

Larry,
I can not even bring Tomcat 3.3 up ( not even 3.2).
So are you saying with 3.3 could use xalan and xerces
only- And I do not need crimson, jaxp, parser?
Thanks a lot,
Sanjay
--- Larry Isaacs [EMAIL PROTECTED] wrote:
 If you are adding 2.2-D13 xalan.jar in Tomcat 3.2.3,
 you
 will probably need to replace the jaxp.jar and
 parser.jar
 with the v1.4.3 xerces.jar.  For Tomcat 3.3 you
 could
 update the v2.1.0 xalan.jar and replace crimson.jar
 with xerces.jar.
 
 If you can use Tomcat 3.3 instead of Tomcat 3.2.3, I
 would recommend doing so.  There are classloading
 issues
 that can be addressed in 3.3, which can't in 3.2.x.
 
 I could offer more help if I knew your error and
 some
 simple steps to reproduce your problem.
 
 Cheers,
 Larry
 
 
  -Original Message-
  From: Ian Bruseker
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, November 26, 2001 7:52 PM
  To: [EMAIL PROTECTED]
  Subject: CLASSPATH for web apps - and the answer
 is?
  
  
  Greetings.  I'm new to this list.  Go easy on me. 
 :-)
  
  Last Monday, Roland Berger posted a message to
 this list 
  titled CLASSPATH
  for web apps (I found his posting in the web
 archive at 
  mikal.org).  In his
  email he asks why Tomcat 3.2.3 is not loading up
 log4j.jar from his
  WEB-INF/lib directory, and comments on how
 un-Jakarta-like it 
  would be to
  have to hardcode a classpath for ever web app in
 the startup 
  script.  I am
  having the same problem (the only difference is
 the jar 
  Tomcat isn't loading
  for me is xalan.jar (from Xalan-J 2.2-D13), not
 log4j.jar).
  
  I've tried both 3.2.3 and 3.2.4, with slightly
 different 
  error message but
  the same basic, bad result.  3.3 failed too, but
 that's 
  probably because
  TOMCAT_HOME$/lib seems to have much more
 importance and 
  organization now,
  and I just don't get it yet (besides, I'm not
 really 
  looking to upgrade
  just yet).
  
  I'm sure whatever the answer to his message was
 will be the 
  same answer I
  require.  Unfortunately, at this moment the web
 archive for 
  this list stops
  at November 19th (the day his message was posted),
 so if 
  there were any
  replies to it, the archive isn't providing them
 for me.  I 
  really require an
  answer soon (rather than waiting for the archives
 to get 
  updated) so I can
  move on with my work.  Could someone help me out
 here?
  
  Thank you.
  
  Ian.
  
  
  --
  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]
 


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




RE: CLASSPATH for web apps - and the answer is?

2001-11-27 Thread Sanjay bahal

Larry,
I am on win98, jdk1.3, Tomcat3.3. I have my
TOMCAT_HOME and JAVA_HOME setup.
My st\ystem classpath is:
CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;
c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;
c:\wstk\wsdl4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;c:\w
stk\lib\xss4j.jar;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\activation.jar;c:\webservices\classes;
c:\jsse\lib\jcert.jar;c:\jsse\lib\jnet.jar;c:\jsse\lib\jsse.jar;c:\axis\lib\axis.jar;
Note: I removed jaxp, parser, crimso.jar from the
classpath.
I run tomcat c:\tomcat run
The error I get is: [this is the best I can grab from
the DOS window]-

at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
Source)
at
org.apache.tomcat.startup.EmbededTomcat.execute(Unknown
Source)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.tomcat.util.IntrospectionUtils.execute(Unknown
Source)
at
org.apache.tomcat.startup.Main.execute(Unknown Source)
at org.apache.tomcat.startup.Main.main(Unknown
Source)
Guessed home=C:\tomcat
java.lang.reflect.InvocationTargetException:
org.apache.tomcat.core.TomcatExcept
ion: EmbededTomcat.initContextManager
at
org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown
Source)
at
org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown
Source)
at
org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown
Source)
at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown
Source)
at
java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
Source)
at
org.apache.tomcat.startup.EmbededTomcat.execute(Unknown
Source)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.tomcat.util.IntrospectionUtils.execute(Unknown
Source)
at
org.apache.tomcat.startup.Main.execute(Unknown Source)
at org.apache.tomcat.startup.Main.main(Unknown
Source)

Thanks a lot,
Sanjay
--- Larry Isaacs [EMAIL PROTECTED] wrote:
 I can't claim to be up to date with the latest state
 of Xerces, Xalan, and Jaxp, so there may be new
 issues
 that I'm not aware of with respect to combinations
 of Xerces, Xalan, etc.
 
 The fundamental problem in Tomcat 3.2.x is that:
 
 1) The web server classes, including Jasper, live on
the CLASSPATH.
 
 2) I believe it is Jasper that requires an XML
 parser,
so an XML parser has to exist on the CLASSPATH
 too.
 
 3) Because Tomcat 3.2 uses the Java 2 sequence of
classloader searching (as does Tomcat 3.3),
 classes
found on the CLASSPATH take precedence over
 classes
local to the web applications.  Thus, all web
applications are forced to use the XML parser on
 the
CLASSPATH.
 
 Jasper doesn't care which XML parser.  So you can
 upgrade the Jaxp 1.0.1 version (jaxp.jar +
 parser.jar)
 to crimson.jar (the current version has the jaxp.jar
 classes included) or xerces.jar depending on your
 other requirements.  However, if you have two web
 applications that want different versions of XML
 parser,
 you are stuck.
 
 Tomcat 3.3 avoids forcing a single XML parser on all
 the web applications by building a more complicated
 classloader hierarchy which hides most of the server
 and Jasper classes from the web applications.  A
 side
 effect of this is that adding classes and jars is
 more
 complicated than simply adding them to the
 CLASSPATH.
 This is why the tomcat.sh/tomcat.bat script ignores
 your
 CLASSPATH setting since that is all too often the
 wrong place to add them.
 
 Adding classes for Tomcat 3.3 is documented here:
 

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes
 
 If this doesn't help, please describe the error you
 are
 seeing and how you have changed the default Tomcat
 3.3
 configuration.
 
 Cheers,
 Larry
 
 
  -Original Message-
  From: Sanjay bahal [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 27, 2001 2:35 PM
  To: Tomcat Users List
  Subject: RE: CLASSPATH for web apps - and the
 answer is?
  
  
  Larry,
  I can not even bring Tomcat 3.3 up ( not even
 3.2).
  So are you saying with 3.3 could use xalan and
 xerces
  only- And I do not need crimson, jaxp, parser?
  Thanks a lot,
  Sanjay
  --- Larry Isaacs [EMAIL PROTECTED] wrote:
   If you are adding 2.2-D13 xalan.jar in Tomcat
 3.2.3,
   you
   will probably need to replace the jaxp.jar and
   parser.jar
   with the v1.4.3 xerces.jar.  For Tomcat 3.3 you
   could
   update the v2.1.0 xalan.jar and replace
 crimson.jar
   with xerces.jar.
   
   If you can use Tomcat 3.3 instead of Tomcat
 3.2.3, I
   would recommend doing so.  There are
 classloading
   issues
   that can be addressed in 3.3, which can't in
 3.2.x.
   
   I could offer more help if I knew your error and
   some
   simple steps to reproduce your problem.
   
   Cheers,
   Larry
   
   
-Original Message-
From: Ian Bruseker
   [mailto:[EMAIL

Installing/Running Tomact

2001-11-23 Thread Sanjay bahal

Hi,
I can not seem to be able to run Tomact. I have tried
Tomact_3_2, Tomact_3_3, Tomact_4_01.nothing works. Is
it really so difficult?
On : 3_2 I used to get the sealing violation error- I
tried the various sugestions on the site- nothing
worked. 
On 3_3 I can not even grab the error msg.
On 4_01 I get an error- I can not grab the error msg-
My system classpath is:
CLASSPATH=.;c:\jdk1.3\lib\rt.jar;c:\xerces\xerces.jar;c:\soap\lib\soap.jar;c:\xml\jaxp.jar;c:\xml\parser.jar;c:\xml\xalan.jar;c:\wstk\uddi4j\lib\uddi4j.jar;c:\wstk\wsdli4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;c:\wstk\lib\xss4j.jar;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\activation.jar;c:\webservices\classes;c:\jsse\lib\jcert.jar;c:\jsse\lib\jnet.jar;c:\jsse\lib\jsse.jar;c:\axis\lib\axis.jar;

do we need all the xml parser files- I have jaxp,
parser, xalan, xerces?  I g\have tried adding and
removing files and cahnging the order etc- Nothing
seems to work.
I am on win98, jdk1.3
Thanks a lot guys,
Sanjay


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




Sealing violation Error

2001-11-17 Thread Sanjay bahal

I get this Sealing violation error not only when I try
to run tomcat but also when I try to execute a class:
My Class Path is -
  
C:\xerces\xerces.jar;C:\soap\lib\soap.jar;C:\wstk\wsdl4j\lib\wsdl4j.jar;C:\wstk\uddi4j\lib\uddi4j.jar;C:\wstk\lib\soapenc.jar;C:\wstk\lib\wstk.jar;C:\wstk\lib\xalan.jar;C:\wstk\lib
  
\xss4j.jar;C:\jsse\lib\jsse.jar;C:\jsse\lib\jnet.jar;C:\jsse\lib\jcert.jar;C:\wstk\soap\lib\pop3.jar;C:\wstk\soap\lib\mail.jar;C:\wstk\soap\lib\mailapi.jar;C:\wstk\soap\lib\activat
  
ion.jar;C:\wstk\soap\lib\smtp.jar;C:\soap\SOAPEnv\SOAPEnvelope.jar;c:\webservices\classes;.;C:\jsdk2
.1\server.jar;C:\jsdk2 .1\servlet.jar;
  
c:\ant\lib\ant.jar;C:\Kawa4.1\kawaclasses.zip;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar
   I get the error:
   java.lang.SecurityException: sealing
violation 
   at
java.net.URLClassLoader.defineClass(URLClassLoader.java:234)

   at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at
java.security.AccessController.doPrivileged(Native
Method)
   at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
   at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
   at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
   at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88)
   at
com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1180)
   at
com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
   at tutorial.UDDI1.main(UDDI1.java:78)
   java.lang.NullPointerException at
com.ibm.uddi.request.FindBusiness.saveToXML(FindBusiness.java:194)
   at
com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1186)
   at
com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
   at tutorial.UDDI1.main(UDDI1.java:78)
   Exception in thread main Process Exit...


   When I try to run Tomcat: C:\ tomcat run

   FATAL: configuration error
   java.lang.SecurityException: sealing
violation
   at
java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
   at
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at
java.security.AccessController.doPrivileged(Native
Method)
   at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
   at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
   at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:120)
   at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92)
   at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210)
   at
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
   at
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
   Tomcat classpath is:
  
CLASSPATH=.;c:\jdk1.3\lib\rt.jar;jswdk-1.0.1\lib\jspengine.jar;C:\jsdk2
.1\server.jar;C:\jsdk2 .1\servlet.jar;
  
c:\ant\lib\ant.jar;c:\xerces\xerces.jar;c:\soap\lib\soap.jar;c:\wstk\uddi4j\lib\uddi4j.jar;c:\wstk\wsdli4j\lib\wsdl4j.jar;c:\wstk\lib\wstk.jar;;c:\wstk\lib\xss4j.jar;c:\wstk\soap\l
  
ib\smtp.jar;c:\wstk\soap\lib\mail.jar;c:\wstk\soap\lib\smtp.jar;c:\wstk\soap\lib\mailapi.jar;c:\wstk\soap\lib\activation.jar;c:\webservices\classes;c:\jsse\lib\jcert.jar;c:\jsse\li
  
b\jnet.jar;c:\jsse\lib\jsse.jar;c:\tomcat\classes;c:\tomcat\lib\SERVLET.JAR;c:\tomcat\lib\PARSER.JAR;c:\tomcat\lib\JAXP.JAR;c:\tomcat\lib\ANT.JAR;c:\tomcat\lib\WEBSER~1.JAR;c:\tomc
 at\lib\JASPER.JAR;C:\jdk1.3\lib\tools.jar

I am using tomcat_3_2,soap_2_2,jdk1.3 on Windows 98.
I have tried palying with the Tomact configuration
using Sun's Xml files instead of Tomact's etc but no
success.

Thanks all,
Sanjay

__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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