This error arises during shuttingdown of tomcat

2001-11-20 Thread Mr.Y.SHIVAKANT

I am using tomcat 3.2.1on linux 7.1 and am getting the following error when i try to 
shutdown tomcat.And as expected i am not able to start it properly.
HANDLER THREAD PROBLEM: java.net.SocketException: Invalid argument

java.net.SocketException: Invalid argument

at java.net.PlainSocketImpl.socketSetOption(PlainSocketImpl.java:native) at 
java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:158)

at java.net.Socket.setSoLinger(Socket.java:106)

at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:122)

at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

at java.lang.Thread.run(Thread.java:325)

any suggestions on how to solve this problem.

rgds

Shivakanth




Re: Tomcat/IIS Installation Problem

2001-05-31 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Todd Sussman [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, May 31, 2001 2:18 PM
Subject: RE: Tomcat/IIS Installation Problem


   I am sorry if this question was answered, but our mail server was
down for 2 days.

We have tomcat 3.2.1 running on Win2k (IIS 5.0).

When we run using http, all is fine.  When adding SSL via a Verisign
Cert., we get a message asking whether we want to d/l secure and
unsecure information.  I then installed JSSE 1.0.2 and modified our
server.xml to allow https requests.  I used keytool to import the cert.
using tomcat as the alias.  I get a message no self-signed cert.
available.  This is from verisign and is not self created.  How do I get
tomcat to use this cert. to serve JSP's under SSL.

Thank You Again,

Todd


Can i install iis server on windows 98.i am asking this because it is meant
for nt platform


Shivakanth




Re: sub:How to use servlets javaBean in Tomcat ?

2001-05-25 Thread Mr.Y.SHIVAKANT


-Original Message-
From: skkanth [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, May 25, 2001 12:37 PM
Subject: sub:How to use servlets  javaBean in Tomcat ?



Hi guys !!

Can someboby explain 1) how to register servlets  where to put servlet in
tomcat.Any other setting is required ?
2) what is the difference between tomcat 3.2.1  tomcat 3.1 ?

Thanks !!
(s.k.kanth)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.252 / Virus Database: 125 - Release Date: 5/9/99



_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com


can you help me with the port argument being null

Shivakanth




Re: ** Does Tomcat need Restart **

2001-04-16 Thread Mr.Y.SHIVAKANT


-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 3:20 PM
Subject: ** Does Tomcat need Restart **


Hi,

Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
to restart automatically whenever a servlet gets modified (i.e. I
re-compile the servlet).

I am running Tomcat and Apache on Linux OS.

Regards,
Marathe

Hi ,
  Is its into big time tomcat




Re: ** Does Tomcat need Restart **

2001-04-16 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Wolle [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 4:45 PM
Subject: Re: ** Does Tomcat need Restart **




"Mr.Y.SHIVAKANT" wrote:

 -Original Message-
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Monday, April 16, 2001 3:20 PM
 Subject: ** Does Tomcat need Restart **

 Hi,
 
 Is there any option in tomcat CONFIGURATION by which, I can instruct
Tomcat
 to restart automatically whenever a servlet gets modified (i.e. I
 re-compile the servlet).
 
 I am running Tomcat and Apache on Linux OS.
 
 Regards,
 Marathe
 
 Hi ,
   Is its into big time tomcat

??? what do you mean with this ?

Greetings,
Michael

i mean is ITS The company the dude is working INTO big time tomcat(working
like hell on tomcat and nothing to do with Jerry The mouse).

YOURS SINCERELY
Shivakanth

P.S I am getting the error port number null not a valid argument when i shut
down can anyone help me with this.








Re: servletoutputstream synchronization

2001-04-16 Thread Mr.Y.SHIVAKANT






-Original Message-From: 
Craig Pfeifer [EMAIL PROTECTED]To: 
[EMAIL PROTECTED] 
[EMAIL PROTECTED]Date: 
Monday, April 16, 2001 6:34 PMSubject: servletoutputstream 
synchronization
All 
--

I'm deploying my 
servlet into Tomcat and JRun 3.0, and I'm experiencing different behavior in 
each. I think it's a threading issue, so I wanted to 
ask:

Does the Tomcat 
servlet container provide synchronized access to the servletoutputstream, or 
do I have to do that myself? What does the servlet spec say about 
this?

Thanks,

Craig

Craig 
PfeiferSoftware EngineerAether Systems, Software Products 
Division(571) 633-5753[EMAIL PROTECTED]


YOUR 
Comany got a cool logo thats all for now.
YOURS 
SINCERELYShivakanth 



Re: How can I run Batch file from servlet ??

2001-04-16 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 16, 2001 9:31 PM
Subject: RE: How can I run Batch file from servlet ??



 When you create a process like this, its up to you to read and write
to the process.  This means that any output from your batch file will be
lost unless you deal with is (Process has methods to get the input and
output streams for standard in/out/error).

 I would suggest you try running your batch file from the tomcat's
home directory.  The problem is usually one of two things.  Either you have
relative paths which aren't valid in the current context or you are
expecting environment variables that aren't valid.  (Or possibly its
actually working but you aren't catching the batch file's input to know
that).

 Randy


 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 16, 2001 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: How can I run Batch file from servlet ??


 Hello All !!

 I am in big trouble, i want to call batch file on the server
 from the servlet. I have tried the following option but they
 didn't work.. please let me know if is there any way to do it...

 Process p = Runtime.getRuntime().exec
 ("cmd D:\\myFolder\\myBatchFile.bat");
 p.waitFor();

 also i have tried without cmd option:
 Process p = Runtime.getRuntime().exec
 ("D:\\myFolder\\myBatchFile.bat");
 p.waitFor();

 Its not throwing an exception and not even giving me any output..

 Thanx in Advance...

 /sunil
 i desperately want to know where i can find mod_jserv for windows can any
one help me.

YOUR SINCERELY
Shivakanth





 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net





Re: Namespace clarification

2001-04-02 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Christian Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 02, 2001 1:45 PM
Subject: Re: Namespace clarification


tomcat puts together the classpath dynamically and you
have no way of influencing the order it does so. so
the sax parser might me loaded before xerces.
one way to get around this is to edit the tomcat.bat
and change the dynamically setting of the classpath to
statically setting the classpath and taking care that
xerces.jar is at the beginning.
you might also want to check out the cocoon project as
this provides the functionality of what you are trying
to do. it also allows you to create XSP pages (hybrid
of JSP and XML)the url is xml.apache.org.

hope this helps

christian

--- "Prasanna.N" [EMAIL PROTECTED] wrote:
 Hi,
 I am using TOMCAT 3.2. I am trying to transform an
 xml
 doc with XSL to generate a HTML. When i write a
 simple Java Class and use
 xerces, xalan it works just fine. When written in
 JSP using JAVA, When i call
 the page i am getting the following error

 "Namespace not supported by SAX Parser".

 I think Tomcat uses SAX Parser. How to come around
 this problem. I am using
 namespaces. Is there any option, to plug in XERCES
 parser with TOMCAT, if so
 how to do it. Since XERCES supports namespaces could
 this be a option to come
 around this problem?  Please help.

 Regards,
 Prasan

 Prasanna N
 Indo-Fuji Information Technologies Pvt. Ltd.
 No: 484, II Cross
 25th Main, II Stage
 BTM Layout, Bangalore 560 076.
 Tel : 91-80-6784122/33/44/55



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text


Hi prassan i am also from bangalore and am looking for a job do you think
that i could forward my resume to you.i am from iit delhi  and have 18
months of work exp with TCS Shall i forward my resume to you.


YOURS SINCERELY
Shivakanth




Re: getServletNames()?

2001-04-01 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Milt Epstein [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, April 01, 2001 10:10 PM
Subject: Re: getServletNames()?


On Sun, 1 Apr 2001, George Kakarontzas wrote:

 OK Milt thanks.
 I should read the spec before I ask. It clearly says:
 "This method was originally defined to return an Enumeration of all the
 servlet names known to this context. In this version, this method always
 returns an empty Enumeration and remains only to preserve binary
 compatibility. This method will be permanently removed in a future
version
 of the Java"

Oh, yeah, should've thought to suggest just looking at the spec.  I
get a lot of my info on the spec changes from a couple of articles
Jason Hunter (author of O'Reilly's Servlets book) wrote for JavaWorld.
I don't have the exact URLs handy, but one is from December 1998 (the
one that covers the changes from 2.0 to 2.1) and one is from October
1999 (from 2.1 to 2.2) -- and that should give you an idea how old
this stuff is.


 - Original Message -
 From: "Milt Epstein" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, April 01, 2001 5:45 PM
 Subject: Re: getServletNames()?


  On Sun, 1 Apr 2001, George Kakarontzas wrote:
 
   Hi all.
   I have been trying to make this run:
   
   import javax.servlet.http.*;
  
   public class Loaded extends HttpServlet {
  
 public void doGet(HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException {
   res.setContentType("text/plain");
   PrintWriter out = res.getWriter();
   ServletContext context = getServletContext();
   Enumeration names = context.getServletNames();
   while (names.hasMoreElements()) {
 String name = (String)names.nextElement();
 Servlet servlet = context.getServlet(name);
 out.println("Servlet name: " + name);
 out.println("Servlet class: " + servlet.getClass().getName());
 out.println("Servlet info: " + servlet.getServletInfo());
 out.println();
   }
 }
   }
   
   However the Enumeration returned by context.getServletNames() is
empty!
   It is supposed to return the serlvets loaded (including Loaded
itself).
   I know that this method has been deprecated in jdk1.3, which I'm
   using, but it should work anyway.
   Any suggestions?
 
  Why do you think it should work even if it's been deprecated?  This
  method was deprecated long ago, in JSDK Spec 2.1, and doesn't do
  anything anymore (like it's related method, getServlet()).
 


Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

i am getting the error given port argument null is not an integer when i am
trying to run tomcat can any one please help me .Thanks in advance.


YOURS SINCERELY
Shivakanth




Re: Beginner question - revised

2001-04-01 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Gabe Mahoney [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 02, 2001 2:49 AM
Subject: Beginner question - revised


Hey all, I sent a mail earlier about having trouble with configuring tomcat
to handle extension types other than .jsp. The problem is not exactly as I
thought. I have modified web.xml so that type .rt is now handled by tomcat.
My .rt file is just a jsp page with a different extension. I get the error
below whenever I access a .rt file in my context, whether the .rt file
exists or not! Which seems really weird to me...Thoughts?

Error: 500
Location: /djmalloc/foo.rt
Internal Servlet Error:

java.lang.InstantiationException: malloc.servlet.PageGetter
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:7
9
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Http
C
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)




 i am getting a port number is null  not an integer error can anyone please
help me.Thanks in advance


YOURS SINCERELY
Shivakanth




Re: Admin USERPASSWORD

2001-04-01 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Ed Gomolka [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, April 02, 2001 6:51 AM
Subject: Re: Admin USERPASSWORD


On Sunday 01 April 2001 20:11, Imron -san wrote:
 I've already installed The newest release of Tomcat on
 my windows 98. I've created my own hello world
 servlet.
 1. How do I deploy my hello world servlet?.
 2. When I go to http://localhost:8080/admin/
the site ask me for user name and password,
where I can find for user/password information for
admin realm?

The admin context is intended for administration of your Tomcat instance.
It should not be used for simple your hello world servlet.
It is the only context that requires the entry of a user name and password.
In order to access all the features of the admin context, you will need
to create a user name and password, and enter them in the file
$TOMCAT_HOME/conf/tomcat-users.xml, and assign them a role of "admin".

Ed
--

Ed Gomolka
([EMAIL PROTECTED])


hi i am new bie to tomcat,
  I am getting a portnumber is
null not an integer error can you anyone help thanks in advance.I am trying
tomact on windows


YOURS SINCERELY
Shivakanth




Re: 2nd Post: Servlets and mod_jk problem

2001-04-01 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Milt Epstein [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Date: Monday, April 02, 2001 9:06 AM
Subject: RE: 2nd Post: Servlets and mod_jk problem


On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 Milt,

 I made the changes that Jeff did and I can now get to the /test
 servlets, but whenever I add my own context and try it (I even
 simulated one of the examples in the /test directory, I still get a
 404 not found from tomcat.  Here's what I have in my simulation
 (note that the context does in fact get added when tomcat
 starts)

We may be going around in circles here, but:

What was the URL you tried?  mydomain.com/tst/foo/bar/myServlet?  And
what is the full text of the tomcat log 404 error message?

Also, I note you have "Web-inf" in the full path of your
servlet/classes directory below -- is that really what it is, or are
you just being lazy typing "WEB-INF" (because I believe it's supposed
to be ALL CAPS)?

Not sure what else to suggest at this point.  Must be some little
thing we're missing.


 * mod_jk.conf
 Alias /tst "/opt/jakarta-tomcat-3.2.1/webapps/tst"
 JkMount /tst/* ajp13
 JkMount /tst/servlet/* ajp13

 * web.xml
 webapp
 servlet
  servlet-name
 test
  /servlet-name
  servlet-class
  com.tst.TestServlet
  /servlet-class
 /servlet

   servlet-mapping
   servlet-name
  test
   /servlet-name
   url-pattern
  /foo/bar/*
   /url-pattern
 /servlet-mapping
/webapp

 * TestServlet.class sits at
 /opt/jakarta-tomcat-3.2.1/webapps/tst/Web-inf/classes/com/tst

 Thanks
 --Kyle

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 3:48 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: 2nd Post: Servlets and mod_jk problem


 On Fri, 30 Mar 2001, Kyle Tippetts wrote:

  Yes, tried this:
  mydomain.com/test/foo/bar/myServlet
  and it still didn't work. Now, if I do
  mydomain.com/test/servlet/requestMap.Servlet1, I can access it
  (obviously), but again, it really appears that servlet mappings
  aren't working

 Now again, when this doesn't work, is it an apache thing or a tomcat
 thing?  What I'm trying to get at is, is apache forwarding the request
 to tomcat.  That will help isolate where the problem is at.  In
 particular, if it's an apache thing, it means the request isn't even
 getting to tomcat, so it probably has to do with the relevant Mount
 (ApJServMount, ApJkMount) directives in the tomcat/apache conf file
 (or, more accurately, the lack of such).  This is a problem I ran into
 when I was setting up some stuff.

 Did you see Jeff Kilbride's recent post?  Apparently he was able to
 get it to work by adding an appropriate ApJkMount directive.

 This does seem to be one of the less clear/less well-documented
 aspects of setting tomcat up.


  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 30, 2001 2:43 PM
  To: [EMAIL PROTECTED]
  Subject: Re: 2nd Post: Servlets and mod_jk problem
 
 
  On Fri, 30 Mar 2001, Jeff Kilbride wrote:
 
  [ ... ]
   Here's the servlet-mapping from web.xml file that comes with the
   distribution:
   servlet
   servlet-name
   servlet1
   /servlet-name
   servlet-class
   requestMap.Servlet1
   /servlet-class
   /servlet
  
   servlet-mapping
   servlet-name
   servlet1
   /servlet-name
   url-pattern
   /foo/bar/*
   /url-pattern
   /servlet-mapping
  
   Here's a snippet from my tomcat.log when I try to pull up
   mydomain.com/test/servlet/foo/bar/myServlet:
   985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo +
 /bar/myServlet)
   null
 
  Did you try the URL:
 
  mydomain.com/test/foo/bar/myServlet
 
  i.e. without the "/servlet"?  My impression is that the url-pattern's
  in servlet-mapping's are meant to follow the context part of the URL,
  and that you don't need to include "/servlet" (although you do need to
  include it if you are just using the servlet-name or the fully
  qualified servlet-class).  That is, part of the point of using
  servlet-mapping's is so you don't need to have the "/servlet" in the
  URL.  This might explain some of your apparent anomalies when using
  "test" (you had it both as the servlet-name and the url-pattern in a
  servlet-mapping, IIRC).
 
 
   This mapping is supposed to map everything under /servlet/foo/bar/ to
   servlet1 -- but as you can see, Tomcat is saying /servlet/foo, with
 extra
   path info /bar/myServlet, doesn't exist. When I pull up
   mydomain.com/test/servlet/requestMap.Servlet1 or
   mydomain.com/test/servlet/servlet1, everything works as it should.
So,
   Tomcat is not paying attention to the servlet-mapping entry.
  
   I think this is a problem, unless somebody has an explanation. I'm
out
 of
   ideas.
  [ ... ]

 Milt Epstein
 Research Programmer