osType is null

2005-07-15 Thread Anil Umarji



Hi,

Can you tell me as why i m the osType is NULL in below log file:

4.1.30/webapps/nm00/jsp/LogonData.jsp
2005-07-14 15:55:55 RequestURI: /nm00/jsp/LogonData.jsp
2005-07-14 15:55:55QueryString: null
2005-07-14 15:55:55 Request Params:
2005-07-14 15:55:55TimeZoneOffset = 4
2005-07-14 15:55:55requestType = 1002
2005-07-14 15:55:55passwd =
2005-07-14 15:55:55userId = test4
2005-07-14 15:55:55passwdExpired = false
2005-07-14 15:55:55osType =
2005-07-14 15:55:55srcPage = /jsp/Logon.jsp
2005-07-14 15:55:57 JspEngine -- /jsp/MainFrame.jsp
2005-07-14 15:55:57ServletPath: /jsp/MainFrame.jsp

This is very sporadic  the majority of the times i do get a successful
osType:

2005-07-14 15:55:47 Request Params:
2005-07-14 15:55:47TimeZoneOffset = 4
2005-07-14 15:55:47requestType = 1001
2005-07-14 15:55:47passwd = Test4!
2005-07-14 15:55:47userId = test4
2005-07-14 15:55:47passwdExpired = false
2005-07-14 15:55:47osType = Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; HCI0431; HCI0445; HCI0527; .NET CLR 1.1.4322)

Following is the code where i m getting the ostype:

onSubmit=fillOS();

function fillOS()
{
document.logonform.osType.value = navigator.userAgent;
setCursor('wait');
}

I will appreciate your help if you can guide me  solve this issue.

Thanks.
Anil

  

This e-mail and any attachments may be confidential and/or legally privileged. 
If you have received this e-mail and you are not a named addressee, please 
inform Evolving Systems TIS at [EMAIL PROTECTED] and then delete the e-mail 
from your system. If you are not a named addressee you must not use, disclose, 
distribute, copy, print or rely on this e-mail. To ensure regulatory compliance 
and for the protection of our clients and business, Evolving Systems may 
monitor and read e-mails sent to and from its servers. Although Evolving 
Systems routinely screens for viruses, addressees should scan this e-mail and 
any attachments for viruses. Evolving Systems makes no representation or 
warranty as to the absence of viruses in this e-mail or any attachments. 

Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112


RE: java.lang.IllegalStateException in tomcat 5.5.4

2005-02-18 Thread Anil Pathak

...
session.invalidate();
...
In my case it was like this. I had written above code in my logout.jsp code.
Any time when the user had refreshed the logoutpage page similar error
occurred. Perhaps it might be case with you. That you are trying to acess
the session method either 
session.getAttribute(adfad); or above one
after you have invalidated the session in your code.
Not sure.







-Original Message-
From: ssk 2001 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 17, 2005 11:58 AM
To: tomcat-user@jakarta.apache.org
Subject: java.lang.IllegalStateException in tomcat 5.5.4

 
 
How to solve this error , pls advice 

java.lang.IllegalStateException: getAttribute: Session already 
invalidated
at org.apache.catalina.session.StandardSession.getAttribute
(StandardSession.java:984)
at 
org.apache.catalina.session.StandardSessionFacade.getAttribute
(StandardSessionFacade.java:109)
at gnu.beanfactory.SessionScope.get(Unknown Source)
at gnu.beanfactory.BeanFactory.findInstance(Unknown Source)
at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown 
Source)
at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown 
Source)
at gnu.beanfactory.BeanContext.lookup(Unknown Source)
at gnu.beanfactory.BeanContext.lookup(Unknown Source)
at org.apache.jsp.include.nav_jsp.checkAccess
(org.apache.jsp.include.nav_jsp:62)
at org.apache.jsp.include.nav_jsp._jspService
(org.apache.jsp.include.nav_jsp:1601)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:295)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:526)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:300)
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)
at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:675)
at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
 
thanks
SSK



-
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.


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



trying to deploy servlet, ant install fails

2005-01-28 Thread Anil Philip
Hello,

The build.xml supplied in the Tomcat 5.5.4 (Windows XP) documentation has
this line in the 'install' target:

   localWar=file://${build.home}/

 

Following the development processes Tomcat document, when I do an: ant
install

I get the following error:

 

C:\CRUDRE\build.xml:369: java.io.IOException: Server returned HTTP response
code

: 401 for URL:
http://localhost:80/manager/deploy?path=%2Fcrudrewar=file%3A%2F%

2FC%3A%5CCRUDRE%2Fbuild

 

However 

- doing a google search it says this 401 error is an authentication problem
but I am able to run the manager from the Start menu and in the
build.properties, I specify the same password/username that I did in the
popup dialog.

- when I did an 'ant all', it built successfully.

 

Any help, appreciated.

Thanks,

Anil Philip

 

 

=== tomcat-users.xml===

?xml version='1.0' encoding='utf-8'?

tomcat-users

  role rolename=tomcat/

  role rolename=role1/

  role rolename=manager/

  role rolename=admin/

  user username=tomcat password=tomcat roles=tomcat,manager/

  user username=both password=tomcat roles=tomcat,role1/

  user username=role1 password=tomcat roles=role1/

  user username=admin password=admin roles=admin,manager/

/tomcat-users

=application-dir\build.properties===

property name=manager.password   value=admin/

  property name=manager.url   value=http://localhost:80/manager/

  property name=manager.username   value=admin/

===

 

 ant all ===

C:\CRUDREant all

Buildfile: build.xml

 

clean:

   [delete] Deleting directory C:\CRUDRE\build

 

prepare:

[mkdir] Created dir: C:\CRUDRE\build

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF\classes

 [copy] Copying 13 files to C:\CRUDRE\build

 

compile:

[javac] Compiling 3 source files to C:\CRUDRE\build\WEB-INF\classes

 

all:

 

BUILD SUCCESSFUL

 



RE: [OT] Advertising website

2005-01-28 Thread Anil Philip
I wonder how page ratings can be improved - how to make your website pop up
to the top in a google search. Is there a trick, or should one simply have
many links to the website from other web pages.
-
Anil Philip

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 28, 2005 11:09 AM
To: Tomcat Users List
Subject: Re: [OT] Advertising website

SEO companies feed you a bunch of bologni (one of the recent scames IMHO),
don't waste your money
you can read up on it their self

http://www.google.com/webmasters/

Filip

- Original Message - 
From: Didier McGillis [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, January 28, 2005 10:57 AM
Subject: RE: [OT] Advertising website


If your serious about this then there is no cheap and easy way.  SEO 
companies get a pretty penny to do their work, and it works and results are 
pretty good.  They can also give you other avenues, and the good ones will 
work within your budget.

Otherwise you will have to hire someone, it is a full time job to keep on 
track and on top of everything.

Some suggestions if you arent hiring.  Label everything out-going with  your

url and email address.  EVERYTHING  Invoices, emails, packages, 
letterhead, employees (opps), stamps, business cards, catalogs.  EVERYTHING.

  Hit the big three in the search engines/directories.  Almost everyone else

uses them for their results.  Google, Inktomi/Yahoo and MSN.  Worry about 
those three, find out how to work those guys.

From: t t [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: [OT] Advertising website
Date: Fri, 28 Jan 2005 08:04:57 -0800 (PST)

Hi,

Does anyone know a easy and cheap (even free) way to advertise a website?
Thanks.

T.T.





-
Do you Yahoo!?
  Yahoo! Search presents - Jib Jab's 'Second Term'



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

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


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



RE: ant install fails

2005-01-26 Thread Anil Philip
Has no one encountered this problem before?

-Original Message-
From: Anil Philip [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 24, 2005 9:46 AM
To: tomcat-user@jakarta.apache.org
Subject: ant install fails

Hello,

The build.xml supplied in the Tomcat 5.5.4 (Windows XP) documentation has
this line in the 'install' target:

   localWar=file://${build.home}/

 

Following the development processes Tomcat document, when I do an: ant
install

I get the following error:

 

C:\CRUDRE\build.xml:369: java.io.IOException: Server returned HTTP response
code

: 401 for URL:
http://localhost:80/manager/deploy?path=%2Fcrudrewar=file%3A%2F%

2FC%3A%5CCRUDRE%2Fbuild

 

However 

- doing a google search it says this 401 error is an authentication problem
but I am able to run the manager from the Start menu and in the
build.properties, I specify the same password/username that I did in the
popup dialog.

- when I did an 'ant all', it built successfully.

 

C:\CRUDREant all

Buildfile: build.xml

 

clean:

   [delete] Deleting directory C:\CRUDRE\build

 

prepare:

[mkdir] Created dir: C:\CRUDRE\build

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF\classes

 [copy] Copying 13 files to C:\CRUDRE\build

 

compile:

[javac] Compiling 3 source files to C:\CRUDRE\build\WEB-INF\classes

 

all:

 

BUILD SUCCESSFUL

 

=== tomcat-users.xml===

?xml version='1.0' encoding='utf-8'?

tomcat-users

  role rolename=tomcat/

  role rolename=role1/

  role rolename=manager/

  role rolename=admin/

  user username=tomcat password=tomcat roles=tomcat,manager/

  user username=both password=tomcat roles=tomcat,role1/

  user username=role1 password=tomcat roles=role1/

  user username=admin password=admin roles=admin,manager/

/tomcat-users

=application-dir\build.properties===

property name=manager.password   value=admin/

  property name=manager.url   value=http://localhost:80/manager/

  property name=manager.username   value=admin/

===

 

 

Any help, appreciated.

Thanks,

Anil Philip

 



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



RE: Deploying a Servlet to Tomcat 5.0

2005-01-26 Thread Anil Philip
See http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Download-Tomcat


-Original Message-
From: Harsha perera [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 25, 2005 12:04 AM
To: tomcat-user@jakarta.apache.org
Subject: Deploying a Servlet to Tomcat 5.0

Hi,

I have been trying to deploy a simple servlet to
Tomcat 5.0. Tomcat is installed on WIndows XP.

This is what I did:
1. Created a directory structure under 
   $TOMCAT_HOME\webapps as follows:
   ROOT\WEB-INF\classes

2. Moved the class(HelloServlet.class) to the
   above created directory.

3. Bounced Tomcat.

4. Attempting to access the class as 
   http://localhost:8080/servlet/HelloServlet gives 
   me the error:
   HTTP Status 404 - /servlet/HelloServlet




type Status report

message /servlet/HelloServlet

description The requested resource
(/servlet/HelloServlet) is not available.


Please advise on how I should be deploying this simple
servlet. 

The servlet is code is given below:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/** Simple servlet used to test server.
 *  P
 *  Taken from Core Servlets and JavaServer Pages 2nd
Edition
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.coreservlets.com/.
 *  copy; 2003 Marty Hall; may be freely used or
adapted.
 */

public class HelloServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws ServletException, IOException {
response.setContentType(text/html);
PrintWriter out = response.getWriter();
String docType =
  !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0 
+
  Transitional//EN\\n;
out.println(docType +
HTML\n +
HEADTITLEHello/TITLE/HEAD\n
+
BODY BGCOLOR=\#FDF5E6\\n +
H1Hello/H1\n +
/BODY/HTML);
  }
}



Regards
Harsha

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

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


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



ant install fails

2005-01-24 Thread Anil Philip
Hello,

The build.xml supplied in the Tomcat 5.5.4 (Windows XP) documentation has
this line in the 'install' target:

   localWar=file://${build.home}/

 

Following the development processes Tomcat document, when I do an: ant
install

I get the following error:

 

C:\CRUDRE\build.xml:369: java.io.IOException: Server returned HTTP response
code

: 401 for URL:
http://localhost:80/manager/deploy?path=%2Fcrudrewar=file%3A%2F%

2FC%3A%5CCRUDRE%2Fbuild

 

However 

- doing a google search it says this 401 error is an authentication problem
but I am able to run the manager from the Start menu and in the
build.properties, I specify the same password/username that I did in the
popup dialog.

- when I did an 'ant all', it built successfully.

 

C:\CRUDREant all

Buildfile: build.xml

 

clean:

   [delete] Deleting directory C:\CRUDRE\build

 

prepare:

[mkdir] Created dir: C:\CRUDRE\build

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF

[mkdir] Created dir: C:\CRUDRE\build\WEB-INF\classes

 [copy] Copying 13 files to C:\CRUDRE\build

 

compile:

[javac] Compiling 3 source files to C:\CRUDRE\build\WEB-INF\classes

 

all:

 

BUILD SUCCESSFUL

 

=== tomcat-users.xml===

?xml version='1.0' encoding='utf-8'?

tomcat-users

  role rolename=tomcat/

  role rolename=role1/

  role rolename=manager/

  role rolename=admin/

  user username=tomcat password=tomcat roles=tomcat,manager/

  user username=both password=tomcat roles=tomcat,role1/

  user username=role1 password=tomcat roles=role1/

  user username=admin password=admin roles=admin,manager/

/tomcat-users

=application-dir\build.properties===

property name=manager.password   value=admin/

  property name=manager.url   value=http://localhost:80/manager/

  property name=manager.username   value=admin/

===

 

 

Any help, appreciated.

Thanks,

Anil Philip

 



how to use SSL. (apache)

2003-07-24 Thread Anil Garg
Hi,

I installed apache_1.3.27.tgz .
I want to make ssl run from browser. Which additional package do i need to
install? OR some changes in httpd.conf will enable ssl.

Thanks and regads
anil.



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



changing passwd in apache

2003-06-06 Thread Anil Garg
hi,

i need to change the passwd for a user  mentioned in
/usr/local/etc/apache/users file.
can some help me telling the command to be used.

thanks
anil.



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



RE: error starting Tomcat

2003-04-05 Thread WIPRO Anil Gandhi
Seems to be like that, Do u have any idea, how it can be configured or how can I check 
whether I have permission. I am currently trying as root.

Thanks
Anil

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 6:09 PM
To: Tomcat Users List
Subject: RE: error starting Tomcat



Howdy,
It might be that you don't have permission to bind to that socket on
your server.  

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: WIPRO Anil Gandhi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 7:12 AM
To: Tomcat Users List
Subject: error starting Tomcat

Hi,
I am unable to start tomcat. Whenever I start it gives me the error
StandardServer.await: create[8005]: java.net.BindException: Cannot
assign
requested address.
I thought initially that there is some process already running on port
8005
but when I checked that found that there is no process running on this
port.

(i used netstat -an | grep 8005 to check that, later tried telnet 0
8005
and got negative response).

I even change this address to 9005 still the same error.

Interstingly when i do ps -ef | grep tomcatthe process is
up but when
I try to access

tomcat from the browser using http://localhost:8080 then nothing comes
up.
when I do netstat -an | grep 8080  , I get LISTEN as the status.

Interestingly tomcat stops automatically after some time.  I am using
tomcat 4.1.18 with JDK 1.4


here is the error message.

StandardServer.await: create[8005]: java.net.BindException: Cannot
assign
requested address
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at
org.apache.catalina.core.StandardServer.await(StandardServer.java:509)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:521)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



error starting Tomcat

2003-04-05 Thread WIPRO Anil Gandhi
Hi,
I am getting the following error when I try to start Tomcat server. 
It waits for quite sometime Creating MBeanServer and later crashes with the following 
exception. I have checked my machine has  8005 port free.

Help seeked.

Thanks
Anil



INFO: Creating MBeanServer
Apr 5, 2003 8:37:34 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Apr 5, 2003 8:37:49 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Apr 5, 2003 8:37:49 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 5, 2003 8:37:49 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=3/52  
config=/root/tomcat2/jakarta-tomcat-4.1.18/conf/jk2.properties
StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested 
address
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:509)
at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone

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



RE: Tomcat 4.0.4 Crashing

2003-04-05 Thread WIPRO Anil Gandhi
No, I did'nt get Core dump, neither I got Internal JVM error.  patches are up to date. 
Solaris Admin guy have updated OS patch recently, still no change in situation.

regards
Anil

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 6:21 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.0.4 Crashing



Howdy,
Do you get a core dump and an hs_err file in the working directory where
you started tomcat?  This is another way of asking if it crashes with an
internal JVM error?  Make sure your solaris box has the OS patches
required for the JDK.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: WIPRO Anil Gandhi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 3:52 AM
To: Tomcat Users List
Subject: Tomcat 4.0.4 Crashing


 Hi,

I have tomcat 4.0.4 installed on Sun server with OS 2.8. Recently I
have
experienced that tomcat goes down without any error logs being reported
in
Catalina. out or any other log file. I am clueless, why tomcat is going
down. has anyone faced similar problem.

Version ; Tomcat 4.0.4 Candidate Release.
JVM : java version 1.4.0_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

Thanks
Anil

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



java.net.SocketException: Software caused connection abort

2003-04-05 Thread WIPRO Anil Gandhi
Hi,

I am facing the following error in my Tomcat production installation.  I have tomcat 
4.0.4 installed. When I upgraded to tomcat 4.1.24, the error is same.

Can anyone please help me. Tomcat is installed on Sun Solaris 2.8.




SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored 
exception: java.net.SocketException: Software caused connection abort
java.net.SocketException: Software caused connection abort
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
at java.net.ServerSocket.implAccept(ServerSocket.java:438)
at java.net.ServerSocket.accept(ServerSocket.java:409)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:356)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Apr 1, 2003 3:52:34 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
WARNING: Reinitializing ServerSocket
Stopping service Tomcat-Standalone

Thanks
Anil Gandhi

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



RE: Proxy Server

2003-04-02 Thread WIPRO Anil Gandhi
Hi,
 In tomcat's server.xml 

 !-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

Uncomment this and try giving proxy port. otherwise look for  more info under jakarta 
tomcat's site. Hope this helps.

Thanks
Anil



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 12:23 PM
To: Tomcat Users List
Subject: Proxy Server


**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi
My organization have a proxy server, and I have just deploy my application
on tomcat 4.18.
But my application only run if I put the IP address on the Exceptions of
Proxy Settings on IE5.
 
Anyone knows, how can I run my application without adding the IP Address!!!.
 
Thanks
AAM
 

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



Tomcat 4.0.4 Crashing

2003-04-02 Thread WIPRO Anil Gandhi

 Hi,

I have tomcat 4.0.4 installed on Sun server with OS 2.8. Recently I have experienced 
that tomcat goes down without any error logs being reported in Catalina. out or any 
other log file. I am clueless, why tomcat is going down. has anyone faced similar 
problem. 

Version ; Tomcat 4.0.4 Candidate Release.
JVM : java version 1.4.0_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

Thanks
Anil

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



error starting Tomcat

2003-04-02 Thread WIPRO Anil Gandhi
Hi,
I am unable to start tomcat. Whenever I start it gives me the error  
StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested 
address. 
I thought initially that there is some process already running on port 8005 but when I 
checked that found that there is no process running on this port.

(i used netstat -an | grep 8005 to check that, later tried telnet 0 8005 and got 
negative response). 

I even change this address to 9005 still the same error. 

Interstingly when i do  ps -ef | grep tomcatthe process is up but when I try to 
access 

tomcat from the browser using http://localhost:8080 then nothing comes up.
when I do netstat -an | grep 8080  , I get LISTEN as the status.

Interestingly tomcat stops automatically after some time.  I am using tomcat 4.1.18 
with JDK 1.4


here is the error message. 

StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested 
address
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:509)
at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone


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



vulnerabilites in 3.2.3

2003-01-16 Thread Anil Garg
hi.

I am looking if tomacat 3.2.3 has any known  vulnerablites?
Can someone tell me what are those or tell me some hyper link which
tells this.

thanx and regards
anil

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




security holes in tomcat 3.2.3

2003-01-16 Thread Anil Garg
hi,

Are there any known security holes in tomcat 3.2.3 ?

thanx and regards
anil

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




mod_jk and SSL communication between Apache to Tomcat ....

2002-10-01 Thread Anil Shinde

Hello,

I have recently setup Tomcat 4.1.12 (for JDK 1.4) on solaris 8. I have
apache 2.0.42 which is build with openSSL and mod_jk compiled statically
into the binary. My standalone apache with SSL works great. I configured
Apache to talk to Tomcat with mod_jk lately, realised that Apache is able to
talk to Tomcat using mod_jk perfectly without any issues when I run Apache
on Port 80.

When I run Apache on SSL (443 port), I am not able to communicate to Tomcat
over SSL using mod_jk.
I dont want to use Tomcat's SSL Http connector.

I went thru the mod_jk documentation to figure out, what needs to be done,
but did not find any useful information.

Can someone please point me to right documentation or an advice.

Thanks !

-Anil

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




important help

2002-08-02 Thread Anil Garg

please see the following error..and tell me on what lines should i start thinking. 
This error is coming on a particular users machine ..and doesnt come at other 
locations:


Error: 500

   Location: /servlet/NROptions

   Internal Servlet Error:

   java.lang.OutOfMemoryError:

  at
java.lang.StringBuffer.expandCapacity(StringBuffer.java)

  at java.lang.StringBuffer.append(StringBuffer.java)

  at NRConfig.getMonths(NRConfig.java:4760)

  at NRConfig.printChartTimes(NRConfig.java:3732)

  at NRConfig.getDLTinfo(NRConfig.java:347)

  at NROptions.ListOptions(NROptions.java:426)

  at NROptions.doGet(NROptions.java:29)

  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

  at
org.apache.tomcat.core.Handler.service(Handler.java:287)

  at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:812) 
  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

  at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
tion(Ajp13ConnectionHandler.java:160)  
  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)  
  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1) 
  at java.lang.Thread.run(Thread.java)

 



 
This is really important to me..
i hope to get some mails which will let me analyse the problem well.
regards
anil 
PS:i am newbie to java and tomcat



Re: important help

2002-08-02 Thread Anil Garg

i would like to add more...
i am not able to reproduce the errorhow can i reproduce it..
if i dint provide the sufficinet information u need plz tell me.
regards
anil
- Original Message -
From: Anil Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 12:26 PM
Subject: important help


please see the following error..and tell me on what lines should i start
thinking. This error is coming on a particular users machine ..and doesnt
come at other locations:


Error: 500

   Location: /servlet/NROptions

   Internal Servlet Error:

   java.lang.OutOfMemoryError:

  at
java.lang.StringBuffer.expandCapacity(StringBuffer.java)

  at java.lang.StringBuffer.append(StringBuffer.java)

  at NRConfig.getMonths(NRConfig.java:4760)

  at NRConfig.printChartTimes(NRConfig.java:3732)

  at NRConfig.getDLTinfo(NRConfig.java:347)

  at NROptions.ListOptions(NROptions.java:426)

  at NROptions.doGet(NROptions.java:29)

  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

  at
org.apache.tomcat.core.Handler.service(Handler.java:287)

  at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:812)
  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

  at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
tion(Ajp13ConnectionHandler.java:160)
  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
  at java.lang.Thread.run(Thread.java)






This is really important to me..
i hope to get some mails which will let me analyse the problem well.
regards
anil
PS:i am newbie to java and tomcat



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




Re: important help

2002-08-02 Thread Anil Garg

thanx for ur mail..
could u plz tell me:


 If you are unable to re-architect your application to consume less memory
 or free memory up, you can try upgrading to JDK 1.4.x (which has a better
 garbage collector)
How to check which version of jdk is on my machine.(i hope you wont mind
questions too trivial for u)
or check out the options to increase heap and thread
 stack size in the JVM ( run 'java -X' from the command line for the
 options)

How can i check the current heap size set and how can i chage it *on unix
machine*

thanx
anil

 Cheers,
 Michael

 - Original Message -
 From: Anil Garg [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 02, 2002 12:26 PM
 Subject: important help


 please see the following error..and tell me on what lines should i start
 thinking. This error is coming on a particular users machine ..and doesnt
 come at other locations:


 Error: 500

Location: /servlet/NROptions

Internal Servlet Error:

java.lang.OutOfMemoryError:

   at
 java.lang.StringBuffer.expandCapacity(StringBuffer.java)

   at java.lang.StringBuffer.append(StringBuffer.java)

   at NRConfig.getMonths(NRConfig.java:4760)

   at NRConfig.printChartTimes(NRConfig.java:3732)

   at NRConfig.getDLTinfo(NRConfig.java:347)

   at NROptions.ListOptions(NROptions.java:426)

   at NROptions.doGet(NROptions.java:29)

   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

   at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

   at
 org.apache.tomcat.core.Handler.service(Handler.java:287)

   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

   at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
 a:812)
   at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

   at
 org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec
 tion(Ajp13ConnectionHandler.java:160)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
 )
   at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
 1)
   at java.lang.Thread.run(Thread.java)






 This is really important to me..
 i hope to get some mails which will let me analyse the problem well.
 regards
 anil
 PS:i am newbie to java and tomcat




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



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




Anyone have tried using Tomcat/Apache/mod_jserv.sl on AIX 5L

2002-05-30 Thread Anil Samudrala

Hi,

I have tried following stuff on AIX 4.3.3 system using JDK 1.3.0 and it
works fine:

Tomcat 3.2
Apache and mod_jserv.sl built on AIX 4.3.0.0

Now before I try the above stuff on AIX 5.1 machine, I want to know if there
are any compatibilty issues. I could not find compatibility related
information on the website. Has anyone has tried to run the above stuff (OR
one of the above components) on any AIX 5L machine? I want to know if this
is compatible with AIX 5L before I give a try on AIX 5L

Thanks,
Anil.



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




Re: I can't stand the UnsatisfiedLinkErrors anymore withTomcat 4.0.1!

2002-02-12 Thread Anil Bhagwat

I agree with the opinion expressed in the email thread below that it is 
quite frustrating to make JNI work running under Tomcat. I keep seeing that 
UnsatisfiedLink Error. I have, for the time being, given up on that issue.

- Anil

From: jean-frederic clere [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: I can't stand the UnsatisfiedLinkErrors anymore withTomcat 
4.0.1!
Date: Tue, 12 Feb 2002 12:35:03 +0100

Larry Meadors wrote:
 
  Can the class loader used to load the classes in the web app load
  native libraries...
  I think that classes in the web app can call native methods, but I am
  by no stretch of the imagination an expert on this. When I ran the
  Oracle OCI JDBC driver (which uses native code) it worked in the
  WEB-INF/lib directory or in the common/lib directory. I had a separate
  issue when reloading classes, but I think that was Oracle specific.
 
  Do I really need to load my class with the native methods...how?
  I also think that classes in the $CATALINA_HOME/common/lib get loaded
  by the common classloader.
 
  I am a big fan of open source, but the troubles I am having...
  I feel your pain. Best of luck getting this going, be sure to share
  when you do to spare the next poor bugger. ;-)
 
  Larry
 
   [EMAIL PROTECTED] 02/08/02 08:29PM 
  Hi All,
 
  After more that a week of messing with it, I'm convinced there is no
  way to call native methods within Tomcat. I have read the class loader
  INFO file 100 times, searched and read the list serve archives for
  hours, followed all the suggestions found within those messages, and
  still I receive UnsatisfiedLinkErrors whenever I attempt to run native
  methods.
 
  Facts:
 
  * I can execute the methods with no problems when run from the command
  line, but I get UnsatisfiedLinkErrors running under Tomcat 4.0.1.
  Hummm...

Without more information it sounds difficult to help?
Have you try System.load() instead of loadLibrary()?

 
  Questions:
 
  * Can the class loader used to load the classes in the web app load
  native libraries with System.loadLibrary? Some list serve messages say
  no, others suggest yes.
  * Do I really need to load my class with the native methods in the
  Common class loader?  If so, how? None of the methods I have tried
  work.
  * Basically, how do I need to sweet talk Tomcat to make it execute my
  native methods?
 
  I'm really frustrated and desperate!  If anyone has made this work,
  please share your wisdom. I am a big fan of open source, but the
  troubles I am having really make me wish I could call tech support at
  some software company!  Any suggestions are welcome.  Thanks..
 
  Cheers,
 
  Jim Boone

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





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: Re: Problem with POST and FORM based authentication

2002-02-06 Thread Anil Paul

Thanks for replying. I've checked this and the login page is fine.
==
html
body
h4Please login:/h4
form method=POST action=j_security_check
  input type=text name=j_username
  input type=password name=j_password
  input type=submit value=OK
/form
/body
/html
==

As I wrote earlier, it correctly authenticates the user but after 
authenticating, it does not forward (or redirect, whatever) to the servlet's 
POST method. Also, if I apply the contraint for GET, it is working fine.

Every thing is working fine if I use the BASIC method instread of FORM.

I suspect that it is a bug in tomcat implementation. Can somebody please 
verify it?

thanks,
Paul.


This is possibly a shot in the dark. But in your login.html page
have you defined FORM METHOD=POST...?
Hope this helps.
Thanks
RS



Anil Paul [EMAIL PROTECTED] on 02/02/2002 10:58:32 AM


To:   [EMAIL PROTECTED]
cc:

Subject:  Problem with POST and FORM based authentication

Dear all,
I am trying to apply a security contraint on POST requests to my
servlet. I

specifed it in my web.xml as:

security-constraint

   web-resource-collection
  web-resource-nameposttest/web-resource-name
  url-pattern/servlet/TestServlet/url-pattern
  http-methodPOST/http-method
   /web-resource-collection

   auth-constraint.../auth-constraint

   user-data-constraint.../user-data-constraint

/security-constraint

I defined the login config as follows:

login-config
   auth-methodFORM/auth-method
   realm-nametestrealm/realm-name
   form-login-config
 form-login-page/login.html/form-login-page
 form-error-page/error.html/form-error-page
   /form-login-config
/login-config

Problem:

When I send a POST request to TestServlet from the brower (by
submitting a
form), I get the login.html page as expected. However, when I submit
the
username/password , doGet of TestServlet is getting called instead
of
doPost()!

To be sure that my settings are all right, I changed the login-
config from
FORM to BASIC, and everything worked fine. ie., after submitting the
login
page, doPost of the servlet is called. So, it's only with the FORM
based
authentication that there is a problem.

I also tested this configuration on JRun and it also has the same
issue.
Can
somebody please throw some light on it? May be I am not doing
something
right.

Please help,
Paul.



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




RE: Help !!! JNI Tomcat (UnSatisfiedLinkError exception)

2002-02-04 Thread Anil Bhagwat

I tried all these options. But, unfortunately, it didn't resolve the issue. 
I think Tomcat does find the DLL, since if I remove DLL from \winnt\system32 
folder I get a different error meesage. My guess is to run JNI under Tomcat, 
certain security seetings need to be configured. Does anyone know of this ? 
Any help would be great.

thanks

- Anil


From: Brian Adams [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Help !!! JNI  Tomcat (UnSatisfiedLinkError exception)
Date: Wed, 30 Jan 2002 20:31:14 -0600

Tomcat must not look in the \winnt\system32 directory.
put the dll in the same directory as the class file.
If you have tomcat starting as a service, try putting the dll in the
%TOMCAT_HOME% directory eg. C:\tomcat
lastly try putting the dll in %TOMCAT_HOME%\bin directory.
goodluck,
B

-Original Message-
From: Anil Bhagwat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Help !!! JNI  Tomcat (UnSatisfiedLinkError exception)


Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into 
a
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I
execute the JNI from a sample JAVA application. I have placed the DLL under
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS 
Visual
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters 

doesn't return any value. But, still it doesn't work. So, the problem is
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app
finds the DLL correctly but can't find the method within correctly. I
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw
quite few people have run into this issue, but didn't notice any 
resolution.
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.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]





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Help !!! JNI Tomcat (UnSatisfiedLinkError exception)

2002-01-30 Thread Anil Bhagwat

Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into a 
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I 
execute the JNI from a sample JAVA application. I have placed the DLL under 
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS Visual 
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters  
doesn't return any value. But, still it doesn't work. So, the problem is 
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app 
finds the DLL correctly but can't find the method within correctly. I 
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw 
quite few people have run into this issue, but didn't notice any resolution. 
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




building mod_webapp.so on win2000

2001-12-13 Thread anil soleti

Hi,

 Can any one help me in building mod_webapp.so from
the sources.I am on win2000.
 I have built tomcat4.0.1 from the sources and i have
downloaded webapp-module-1.0.1-tc401-src.tar.gz. 
 Thanks in advance,

regards,
vis

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




RE: Tomcat 3.3 apache configuration

2001-12-05 Thread anil soleti

Hi Larry,

yes,i would like to turn Apache's DocumentRoot into
a web application for servlets and JSP.
 
Regards,
vis

--- Larry Isaacs [EMAIL PROTECTED] wrote:
 Does have the servlets. class file(jar files) in
 apache
 doc root literally mean putting jar files in
 Apache's
 DocumentRoot directory?  Or, does it mean you want
 to
 turn Apache's DocumentRoot into a web application
 so it can serve servlets and JSP?
 
 Cheers,
 Larry
 
  -Original Message-
  From: anil soleti [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 04, 2001 10:43 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 3.3 apache configuration
  
  
  Hi All,
  
   I have jus installed tomcat 3.3 and apache with
 ssl.I
  have chosen to use mod_jk as adapter to apache.I
 could
  able to configure it properly. And everything
 works
  fine with default configuration but my requirement
 is
  to have the servlets. class file(jar files) in
 apache
  doc root.Is there any way to configure
  this.
   Do, I need to set separate context for this.
  If any one could help me with referring some
 example
  that would be great.
  
  Thanks in advance.
  
  Regards,
  vis
  
  
  
  
  __
  Do You Yahoo!?
  Buy the perfect holiday gifts at Yahoo! Shopping.
  http://shopping.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!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Tomcat 3.3 apache configuration

2001-12-04 Thread anil soleti

Hi All,

 I have jus installed tomcat 3.3 and apache with ssl.I
have chosen to use mod_jk as adapter to apache.I could
able to configure it properly. And everything works
fine with default configuration but my requirement is
to have the servlets. class file(jar files) in apache
doc root.Is there any way to configure
this.
 Do, I need to set separate context for this.
If any one could help me with referring some example
that would be great.

Thanks in advance.

Regards,
vis




__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Trouble trying to port from JServ

2001-07-06 Thread anil

Hi Barry,

If you want all your servlets served through the my.domain.com/int,  On the
server.xml  change
RequestInterceptor
className=org.apache.tomcat.request.InvokerInterceptor
debug=0 prefix=/servlet/ /

RequestInterceptor
className=org.apache.tomcat.request.InvokerInterceptor
debug=0 prefix=/int/ /


then I guess on your web.xml has to have
servlet
servlet-name
   LogIn
/servlet-name
servlet-class
ca.on.cad.utilities.MyServlet
/servlet-class
/servlet

that should do the trick. downside of this is all your contex are prefix with
/int/. I guess this way
http://your.domain./int/MyServlet should work.


anil


Barry wrote:

 Hi all,

 I hope someone can help me with a problem. I'm sorry if this is a stupid
 newbie question but I've been working on this for days with no success. I
 have been through all the documentation too.

 I am trying to port my web application from JServ to Tomcat/mod_jk and am
 having trouble configuring Tomcat to use the same URL for servlets that I
 used with JServ. Unfortunately changing the URL of my servlets is not an
 option because hundreds of external sites already link to these URLs.

 The URL I am currently using for all servlets is
 http://www.mydomain.com/int/MyServlet. Unfortunately under Tomcat my
 servlets only work at the URL http://www.mydomain.com/int/servlet/MyServlet.
 I think I've configured it correctly but it still won't work. I just see the
 following from stdout:

 2001-07-06 01:49:23 - Ctx( /int ): 404 R( /int + /MyServlet + null) null

 Below are my conf files. I've tried several variations on them with no
 success.

 I have the following settings in server.xml:
 Context path=/int
 docBase=/opt/dev/website/int
 crossContext=false
 debug=0
 reloadable=true 
 /Context

 /opt/dev/website/int is the directory that contains all my servlet classes.
 It also contains WEB-INF/classes which is actually a symbolic link back to
 /opt/dev/website/int. I am not using JSP.

 web.xml contains the following:
 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /*
 /url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /servlet/*
 /url-pattern
 /servlet-mapping
 ...

 I thought this should cause all files in /int to be handled by the invoker.

 Finally mod_jk.conf contains the following:

 Alias /int /opt/dev/website/int
 Directory /opt/dev/website/int
 Options Indexes FollowSymLinks
 /Directory
 JkMount /int/* ajp12
 Location /int/WEB-INF/
 AllowOverride None
 deny from all
 /Location
 Location /int/META-INF/
 AllowOverride None
 deny from all
 /Location

 Under this configuration the URL http://www.mydomain.com/int/MyServlet
 always returns 404 - Page not found. But
 http://www.mydomain.com/int/servlet/MyServlet returns the correct servlet
 response.

 Sorry dump all these configuration files on you but I wanted to provide as
 much info as possible. Can someone kindly explain how I can continue to use
 the same url (http://www.mydomain.com/int/MyServlet) with Tomcat? What am I
 doing wrong?

 I am using Tomcat 3.2.2 and Apache 1.3.20.

 Any and all replies are much appreciated.

 Thank you,

 Barry
 [EMAIL PROTECTED]




Re: Programmatic security with servlet mappings in tomcat

2001-07-03 Thread anil

You can setup a custom login screen and set it up in the tomcat. I am doing
it. and you can access the username and password from session variables
j_username and j_password. also you can access requested link from session.

 login-config
auth-methodFORM/auth-method
form-login-config
  form-login-page/LogIn/form-login-page
 form-error-page/LogIn/form-error-page
  /form-login-config
 /login-config

I like the tomcat login module because it is transparent. I guess you check
the role, roleGroup and set response.sendError(401,..) to redirect user back
to login page if he/she does not have enough previlages.

did I miss anything here??

anil


pete wrote:

 Sure, one is that i want custom login screens, another is that we store
 all our authentication details centrally and query for them via an XML
 data service.

 Various user and domain-specific data, including user preferences,roles
 etc. is stored in this repository, not just 'yes, this user has blanket
 access to the site'.

 Our permissions-management tools are all written to work with this, so i
 have an existing system i must fit my tomcat-based solutions into here.

 I do use tomcat's basic authentication facilities for some unrelated
 services, but for us it makes a lot of sense to centralize
 authentication and preference data this way.





Tomcat Security? How to get around this?

2001-06-30 Thread anil

Hi All,

My web.xml looks like this.

servlet
servlet-name
   Client
/servlet-name
servlet-class
ca.ksb.client.Client
/servlet-class
/servlet

 servlet-mapping
 servlet-nameClient/servlet-name
 url-pattern/protected/Client/url-pattern
/servlet-mapping

 security-constraint
   ...
  url-pattern/protected/*/url-pattern
.
/security-constraint


if I use http://www.my.com/protected/Client , tomcat prompts for
login window.
but  I  access http://www.my.com/servlet/Client , tomcat does not
prompt login window.

I do have some servlets that does not need any security. So I cannot
set /sevlet/* as protected area. One solution that I see is to move all
the protected servlet to the folder called /protected/ and setup web.xml
like below.

servlet
servlet-name
  Client
/servlet-name
servlet-class
/protected/ca.ksb.client.Client
/servlet-class
servlet-mapping
 servlet-nameClient/servlet-name
url-patternClient/url-pattern
/servlet-mapping

 security-constraint
   ...
  url-pattern/protected/*/url-pattern
.
/security-constraint

is there any other way? what happens if I comment out  this line in
server.xml.
RequestInterceptor
className=org.apache.tomcat.request.InvokerInterceptor   debug=0
prefix=/servlet/ /

   Thanks

.anil





Re: SSL with Verisign key

2001-06-27 Thread anil

Try this from Jan Labanowski .
http://www.ccl.net/cca/software/UNIX/apache/

anil





Re: Enterprise JavaBeans support?

2001-06-26 Thread anil

Hi Aaron,

Check www.jboss.org. They have Tomcat and Jboss bundle together module and it is ready 
to roll.

anil

Aaron Cooper wrote:

 Hello

I have been checking the online documentation but I have not found the answer I 
am looking for.  I know that Tomcat support JavaBeans, but does it support EJB?

 Thanks

 Aaron




Re: getServletContext()

2001-06-26 Thread anil

I guess to save any object to a session, the object has to implement serializable
interface.

anil





Re: huge problem with mod_jk and Apache

2001-06-25 Thread anil

Hmm. That is strange. I run Tomcat 3.2.2 with
JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
can't complain on Dell 800MHz server with 128MB of RAM with RedHat 6.2.
The JDK is Sun JDK 1.3.1.
Apache connector is Mod_jk12.
Email me the the servlet and I will try to run on my server.

anil

Nick Stoianov wrote:

 Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
 mod_jk). I noticed that when I run Apache with mod_jk - Apache serves
 the html pages extremely slow (20 seconds for a simple page). If I
 disable mod_jk - it's  fast again. I will really appreciate if
 somebody helps me with this problem. ThanksNick




Re: 3.2.2 Dies After Prolonged Use...

2001-06-02 Thread anil

I guess, any one these can lock your web server.


#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150


anil

Joe Howes wrote:

 Thanks for the suggestion, Jeff.

 Stupid question...I've grepped all over hell and back and I can't find a
 max_threads param in any config files :)  Where do I find it?

 - Joe





Re: setAttribute behaviour when passing null as attribute

2001-05-30 Thread anil

I do not think this is posiible.  Session attributes are stored in a hashtable.
You cannot save null value to hashtable.

If you try session.setAttribute(myValue,null);
you will get null pointer exception with error 500.

I might have missed some thing, but take a look at  package
org.apache.tomcat.session.

anil

Thomas Krebs wrote:

 Hope, this wasn't discussed already (I browsed through the list but didn't
 find it), if it was I apologize.

 What is the expected result of calling setAttribute on an instance of
 ServletRequest, if the attribute to be passed is null (i.e.
 request.setAttribute(someName, null))?
 I would expect that for the given name null is stored which would ensure
 that a getAttribute call afterwards would return null as well.
 However, the Tomcat implementation will leave the value unchanged:

 --- code snippet from RequestImpl ---
 Class org.apache.tomcat.core.RequestImpl.java line 614

 public void setAttribute(String name, Object value) {
  if(name!=null  value!=null)
  attributes.put(name, value);
 }

 --- end code snippet

 Since other servlet container behave differently at least JRun does, namely
  setting it to null, I wonder whether this is a bug in Tomcat?
 I would argue that the expected behaviour is that getAttribute(name)
 returns null, if  a value for name was never set. In all other cases,
 it should return exactly the value set with the last setAttribute call.

 Any opinions on that?

 best regards,
 thomas




Re: tomcat/linux question

2001-05-27 Thread anil

This is not a solution to the problem. I have another question.

On the tomcat, The sessions are stored in a hashtable. Does't that provide
synchronization??

anil

Gary Lawrence Murphy wrote:

 This also sounds like perhaps a dead-lock where you have static data
 that is being shared between two sessions.  For example, if you have
 an iterator over some list in one session while another session
 modifies the list, the iterator will be in deep trouble.

 When the second user locks, does the first user still complete their
 session? Another scenario is where you might lock an object or method
 to give one session write permission, but the object is not unlocked;
 the second (and subsequent) sessions are seized waiting for the lock
 to clear.

 Be very careful when using synchronized methods, and work through
 each to see if you can give your servlets a finer synchronization
 through synchronized blocks of code within multithreaded methods.
 There is a thread-safe wrapper for the container classes (see the API
 docs) but be aware that this does not prevent trouble, it just ensures
 your app will abort quickly when a problem arises.





Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread anil

I am not an expert.
Every call has some kind of static class ID for the versioning. When you
compile a class,  it  increments. So you have your jsp/servlet compiled
as one class id (you have reference from servlet/jsp to bean) , if you
recompile your bean, then it is going to increment class id and you do
have versioning mismatch. I have seen this happens on RMI.

anil.

Leon Palermo wrote:

  Mahesh and others, After performing the test myself and looking at
 things, I found out that indeed the dispatch servlet is putting the
 bean in correctly and the jsps are utilizing them properly.  The
 problem occurs only after I compile any file used by the Bean.
 Although the Bean isn't compiled itself (the .class file remains the
 same); the compilation of a class imported by the bean causes the
 ClassCastException.  Only after restarting tomcat do things function
 properly until the next compilation of the file used by the Bean. As a
 result, I transfer the focus of this problem away from the jsp realm
 to the Java language realm.  Does anyone have any idea why the
 compilation of imported classes would cause a ClassCastException as
 previously described? Thanks again!




Re: Servlet, JSPs and images...

2001-05-25 Thread anil

This might woryour webapp

webapp---WEB-INF/classes/..
|---images/foo.gif
|---jsp/bar.jsp



String reqContext = request.getContextPath();
String image =reqContext+/images/foo.gif;


anil


Joel Boyd wrote:

 I am using Tomcat to run a Servlet, and the Servlet forwards requests, via a
 RequestDispatcher, to my JSP pages.
 Tomcat is finding the JSP pages, but not the images referenced in them.

 My JSP pages are in webapps/myapp and my images are in webapps/myapp/images.
 I reference the images using images/myimage.gif, and it worked before when
 I was directly serving up the JSP pages.  Now Tomcat complains that it
 cannot find the images:

 /myapp/servlet/images/myimage.gif  returns null

 I tried creating a webapps/myapp/servlet/images directory and put all my
 images there, but that still did not work.

 Does anyone know what is going on here?

 Thanks.

 Joel Boyd




===Session Question===

2001-05-22 Thread anil

Hello,

I do have servlet that process request and forward to another servlet.
like.
-request- Servlet1---servlet2
  session-obj-1session-obj1(destroy
session-obj1 request is done-user gets html back)

At the end of sevlet2, user get html window back.
I want setup a session object in servlet valid only for that request. I
mean it should not valid beyond servlet2.
if I use request.getSession(x), this session-obj1 is valid until the
browser is closed.

is there anyway to do this without calling removeAttribute() 

thanks

anil




Re: ===Session Question===

2001-05-22 Thread anil

No, I do not want to invalidate whole session. I have some varibales that I
want keep. But I want some to alive only in the request.

thanks

anil

Alin Simionoiu wrote:

 have you try to invalidate the session ?

 - Original Message -
 From: anil [EMAIL PROTECTED]
 To: tomcat [EMAIL PROTECTED]
 Sent: Tuesday, May 22, 2001 12:26 PM
 Subject: ===Session Question===

  Hello,
 
  I do have servlet that process request and forward to another servlet.
  like.
  -request- Servlet1---servlet2
session-obj-1session-obj1(destroy
  session-obj1 request is done-user gets html back)
 
  At the end of sevlet2, user get html window back.
  I want setup a session object in servlet valid only for that request. I
  mean it should not valid beyond servlet2.
  if I use request.getSession(x), this session-obj1 is valid until the
  browser is closed.
 
  is there anyway to do this without calling removeAttribute() 
 
  thanks
 
  anil
 




Re: ===Session Question===

2001-05-22 Thread anil

Hi Warren,

Thanks for the magic to destroy the session object when the response is
delivered to client. That's the idea. I have some attributes that I do not want
to go away as long as tomcat lives but need to have the freedom to change. some
to live only for the request.
Like say that I have a object graph like salesman list that does not change very
often. I want to keep them as context attribute. But on the
customerDetailDisplay I want to keep the customer for the one single request
only where I got request for the CustomerDetail information.
With Jserv, I used to keep them in a singleton (so called application objects)
.  Now with Tomcat 3.2.1 + Jboss 2.1, the salesman list might change once in
awhile (so that does not qualify as static type object), but it will stay the
same for long period of time.
for recap:
1. object graph that might change once in awhile, but will used by different
servlets
(hope to keep them as context session object) - how???
getContext.setAttribute(me,myGlobalObject);???

2. object graph that should  live only for the request. OK:
request.setAttribute(oh!my,myRequestObjet);
next line always will be:
getServletConfig().getServletContext().getRequestDispatcher(page).forward();

idea is to have the request hit the servlet Controller first and then go to the
view.

How do you guys handle situation like this in tomcat??

thanks

anil


Warren Crossing wrote:

 hi anil,

 i hope i've got your intention, you want to pass an object graph from
 servlet1 to servlet2.  tomcat provides session management through
 request.getSession().setAttribute() these objects are accessible for the
 duration of the session.  If you only want the object graph to live for the
 lifespan of a single request then use request.setAttribute() and it will
 automatically destroy() when the response is returned to the
 tomcat-request-interceptor-responder-web-server-thingy ( i think that's its'
 technical name ) ;

 warren.





Re: ===Session Question===

2001-05-22 Thread anil

Thanks for the idea Alin. But that will invalidate all the attributes in the
session. I want to keep some. And some to keep only in the request context (what
ever you call).

request.getSession(true) - this will create new session if you do not have a
session. I am not sure what will happen with
request.getSession(false) if you already have a session, I guess you can't
access any session variables in that servlet because it is kind of ignoring the
session. (I am not an expert on this).

anil

Alin Simionoiu wrote:

 I was thinking at something more simple then this.
 When you pass an object  between servlet1 and servlet2, you pass also the
 request object ( HttpServletRequest..)
 So, in servlet2 you can do HttpSession session =
 request.getSession(false);right?.. ( where request is the request object
 passed by servlet1)..
 After  you serve you're client you can simple do a : session.invalidate();
 and you're session that was passed from Servlet1 is no more a valid one.

 Alin




JServ 1.2 issue ...

2001-05-21 Thread Anil Kumar


I have configures Jserv bindaddress to an IP address . Still it looks at
localhost and give the following error...
[21/05/2001 12:49:56:511] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:9878
[21/05/2001 12:49:56:512] (EMERGENCY) ajp12: connection fail
[21/05/2001 12:49:56:512] (ERROR) an error returned handling request
via protocol "ajpv12"
Some one can help?
Thanks in advance ...
Anil


Re: how to create a war file manually

2001-05-18 Thread anil

You have your directories META-INF WEB-INF jsp html

then: jar -cvf my.war META-INF WEB-INF jsp html

anil


Jianlin Chang wrote:

  How can I create a war file manually?  I know I can follow
 Developing Applications With Tomcat and use build.xml, but that
 seems more complicated, is there a simple way where I can just pack
 everything needed (jsp, html, classed) into a war file using a single
 command?  Thanks.




Tomcat Apache/ JServ mod_jserve problem ...

2001-05-17 Thread Anil Kumar

Hi

I thought Some one  can help ..

I am getting these error messages ...

[17/05/2001 09:25:38:758] (ERROR) an error returned handling request via

protocol ajpv12
[17/05/2001 09:25:41:553] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:61618
[17/05/2001 09:25:41:553] (EMERGENCY) ajp12: connection fail

in mod_jserv.log ...

Could you please tell me how we can  fix this problem ... Thanks in
advance ..




Re: Has anybody resolved no-refresh of servlets?

2001-05-17 Thread anil

If the servlet class on your classpath(system classpath)  servelt reload won't work.

anil

Mazur wrote:

 Actually, I wouldn't mind seeing an answer to this one as I still have
 not been able to get my servlets to reload even when setting the
 reloadable flag to true.

 If anyone waats to offer up an answer to Mark's post, I'm listening!
 :-)

 Rob

 Mark Mynsted wrote:
 
  Please disregard that message...




Re: 2nd Posting: Cannot build servletapi 4b3

2001-05-04 Thread anil

Do you have jaxp 1.1 on your classpath??

anil

Noel E. Lecaros wrote:

 Hi, Anthony

 Hardware problem?

 Just a suggestion.

 Regards,
 Noel Lecaros

 Anthony W. Marino wrote:

  ./build.sh: line 35:  1502 Segmentation fault  ${JAVA_HOME}/bin/java
  -classpath ${CLASSPATH} org.apache.tools.ant.Main -buildfile ${BUILDFILE}
   $@
 
  Any suggestions?
 
  Thank you,
  Anthony
 
  ---




Apache mod_jk

2001-04-20 Thread Noone Anil Kumar


Hi,
I am configuring appache to support SSL with the help of
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl-howto.html
.
But where in, the section :
Tomcat with Apache and mod_jk
started with
If you use Apache with SSL (apache-ssl or apache-mod_ssl), the apache
connector mod_jk will be able to forward to tomcat some SSL informations
if
JkExtractSSL directive is present in your httpd.conf.
But i don't see JkExtractSSL in httpd.conf ;
How should i go for it ???
Any help appreciated in configuring Apache 1.3.14 + Tomcat 3.1 on WinNT
for SSL ..
Thanks in advance,
Anil






SSL

2001-04-17 Thread Noone Anil Kumar

Hi,

Does Tomcat V3.1.1  supports SSL ???

Any help appreciated 

Thanks in advance,
Anil








Re: import javax.servlet compile error

2001-04-14 Thread anil

Denis,

may be typo. You do not have semi-colon on the first line.  after import
java.io.*

anil
Denis wrote:

 Hi all

 I cannot compile the java program with the program header start with

 import java.io.*
 import javax.servlet.*;
 import javax.servlet.http.*;

 during the compilation, it stops with error at the above statement.

 I have make sure the classes are set under the correct path.

 Thanks!




Help on tomcat V 3.3 config.

2001-04-11 Thread Noone Anil Kumar

Hi ,

I am working on Tomcat 3.3 on WinNT with Apache 1.3.12.
I able to execute "/examples" web app perfectly .

When i tried to run my application,  i am getting "/servlet/ not
found exception"

 and here is the my App context in a file "apps-cv.xml"  :

doubt: how to make ContextXmlReader to read this ".xml" file
i tried   : /bin/startup -f conf/app-cv.xml , but the tomcat window
coming up and going down like flash.

Wht could be the wrong???


webapps
   Context path="/servlets"
docBase="c:/snm/hpstmgmt/webroot/servlets"
debug="0"
 reloadable="true" 
  LogSetter name="cv_tc.log" path="logs/cv.log" /
  LogSetter name="cv_servlet_log"
 path="logs/servlet_cv.log"
servletLogger="true"/
  /Context

/webapps

Any help appreciated.


Thanks in advance,
Anil













Need Help on Tomcat V4.0b

2001-04-09 Thread Noone Anil Kumar

Hi ,

I am trying to configure Tomcat V4.0b3 on Win NT 4.0 with Apache 1.3.12
but found it is different form Tomcat V3.2.1 in configuration part. As
in Tomcat V 3.2.1
there is "tomcat/conf/tomcat.conf"  file to include in apache
"apache/conf/httpd.conf"  but i have n't find the same in Tomcat V4.0.

Any help in configuring Tomcat V4.0 is appreciated...

Thanks,
Anil




Re: Need Help on Tomcat V4.0b

2001-04-09 Thread Noone Anil Kumar

Hello ,

Thanks for your prompt reply. I have done the same but i was able to see apache
server up because when i run "/bin/startup.bat" file tomcat console is comingUp
and going down  like a flash

The configuration part what i did was

1.  /tomcat/conf/server.xml
 -- added my servlet context

  Context path="/servlets"
 docBase="c:/snm/hpstmgmt/webroot/servlets"
 debug="9"
 reloadable="true" 
   Logger className="org.apache.catalina.logger.FileLogger"
 prefix="CV_log." suffix=".txt"
   timestamp="true"/
/Context


2.  added a file  "tomact.conf" under "/tomcat/conf/" dir
 --- using by Apache httpd.conf

3.  Set CATALINA_HOME system variable to c:\tomcatV4.0

Did i missed out any other part...

Thanks in advance,
Anil



,
"Felix A. Milovanov" wrote:

 
  Hi ,
 
  I am trying to configure Tomcat V4.0b3 on Win NT 4.0 with Apache 1.3.12
  but found it is different form Tomcat V3.2.1 in configuration part. As
  in Tomcat V 3.2.1
  there is "tomcat/conf/tomcat.conf"  file to include in apache
  "apache/conf/httpd.conf"  but i have n't find the same in Tomcat V4.0.
 
  Any help in configuring Tomcat V4.0 is appreciated...
 
  Thanks,
  Anil
 
   Hello,

   but what's the problem? I think the better way is to read tomcat.conf file,
 understand what each line means and write your very own lines to httpd.conf.

   I used the following lines :

 LoadModule  jk_module   libexec/mod_jk.so
 AddModule   mod_jk.c
 JkWorkersFile   /usr/tomcat/conf/workers.properties
 JkLogFile   /usr/tomcat/logs/mod_jk.log
 JkLogLevel  warn

 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13

   And I understand each line in this - so if I'll need to make some config,
 I can do it very easy cause I understand what to do and how to do :)))

   Sincerely,
 Felix.




Tomcat Sessions

2001-04-06 Thread Noone Anil Kumar


Hi ,
We are running tomcat 3.2.1 on WinNT with Apache Server 1.3.12, and
here is the problem that we are facing with Session:
"HttpSession session = getSession(req)"
where req is the HttpServletRequest object.
is working fine with ServletRunner (provided by Jsdk2.0)
but when we start using it with Tomcat,
the session object is of type as follows:
HTTP Session = org.apache.tomcat.facade.HttpSessionFacade@8f04cf35
Is there any difference in : Jsdk2.0 HttpSession Object 
the above one 
So whenever we try to access the current session object,
it seems that we get NULL object in Tomcat.
Please help me out in solving this problem...
Thanks in advance,
Anil








Re: Tomcat Sessions

2001-04-06 Thread Noone Anil Kumar


Yes, i was using HttpServletRequest.getSession()
function call
inside getSession( req )
function, It's working fine with Servlet runner but not with tomcat
as i said ...
William Kaufman wrote:

Is
there any difference in : Jsdk2.0 HttpSession Object  the above
one 

org.apache.tomcat.facade.HttpSessionFacade
IS an HttpSession.

So
whenever we try to access the current session object, it seems
that we get NULL object in Tomcat.

I
don't know what getSession(HttpServletRequest) is--it doesn't seem to be
in the JSDK 2.0.


You
should call HttpServletRequest.getSession() -- if you still have
trouble, the problem is somewhere else. You should check where that
stack trace is coming from.

-- Bill K.




Re: Tomcat Sessions

2001-04-06 Thread Noone Anil Kumar


Here is the trace:
java.lang.NullPointerException
 at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled
Code)
 at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled
Code)
 at SessionTrack.run(Compiled
Code)
 at java.lang.Thread.run(Compiled
Code)
In SessionTrack class i am trying to retrive the values(mode,lastAcessTime
,IdleTime etc) which are stored in the HttpSession Object.

Noone Anil Kumar wrote:
Yes, i was using HttpServletRequest.getSession()
function
call inside getSession( req )
function, It's working fine with Servlet runner but not with tomcat
as i said ...
William Kaufman wrote:

Is
there any difference in : Jsdk2.0 HttpSession Object  the above
one 

org.apache.tomcat.facade.HttpSessionFacade
IS an HttpSession.

So
whenever we try to access the current session object, it seems
that we get NULL object in Tomcat.

I
don't know what getSession(HttpServletRequest) is--it doesn't seem to be
in the JSDK 2.0.

You
should call HttpServletRequest.getSession() -- if you still have
trouble, the problem is somewhere else. You should check where that
stack trace is coming from.


-- Bill K.





Tomcat Configuration

2001-04-04 Thread Noone Anil Kumar

Hi ,

I am running  my servlet:" MarsDm" on the following set up:

Apache 1.3.12
Tomcat 3.2.1
WinNt 4.0

When i started Apache  Tomcat i do see the following error message on
Tomcat 3.2 server console :

" Ctx( /webSnm ): Mapping with unregistered servlet MarsDm"

where webSnm is a dir under webApps and MarsDm is the servlet name...

Could you please let me what could be reason for this error message???

Thanks in advance,
Anil






How to capture tomact out put into the log file

2001-04-04 Thread Noone Anil Kumar

Hi ,

I am running  a servlet on the following set up:

Apache 1.3.12
Tomcat 3.2.1
WinNt 4.0

Where i would like to capture Tomcat 3.2 console output into a log file.

How

I would appreciate if anybody help me out in this matter...



Thanks in advance,
Anil




tomcat

2001-04-03 Thread Noone Anil Kumar

Hi ,

I am running  my servlet:" MarsDm" on the following set up:

Apache 1.3.12
Tomcat 3.2.1
WinNt 4.0

and i encountered the following exception,  when the servlet was loaded
and started running properly:

Error: 500
Location: /servlet/MarsDm
Internal Servlet Error:

java.lang.NullPointerException
 at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code)
 at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code)
 at SessionTrack.setAccessMode(Compiled Code)
 at MarsDm.doGet(Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler

.java:210)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)

 at java.lang.Thread.run(Compiled Code)


I would appreciate if anybody help me out on this...

Thanks,
Anil







RE: How can i create a login application

2001-03-26 Thread Anil Guntgatti
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
org.apache.tomcat.core.ServletWrapper.doService(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.Handler.service(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.ServletWrapper.service(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.ContextManager.internalService(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection,
java.lang.Object [])
 void org.apache.tomcat.service.TcpWorkerThread.runIt(java.lang.Object
[])
 void org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
 void java.lang.Thread.run()

XML files seems to be fine. Have attached the XML files below.
(See attached file: web.xml)(See attached file: struts-config.xml)

Would appreciate any help,
Anil.

 web.xml
 struts-config.xml


Can JSP Page extend servlet

2001-03-26 Thread anil

Hi All,

I have web based application written with jserv for a newspaper and
wanted to port this to tomcat. I do have login servlet, I wonder jsp
page can extend the login servlet and use loin methods in there. if yes
how?

thank you

anil




Re: catalina and jboss

2001-03-22 Thread anil

Hi Daniel,

How do you run jboss and catalin?. In a embedded mode or in a seperate VMs.

thanks for any insight.

anil

Daniel Toms wrote:

 Anyone have trouble getting the InitialContext for Jboss 2.1
 when running Tomcat-4.0-b1?  We are getting:

 Cannot instantiate class:
 org.jnp.interfaces.NamingContextFactoryorg.jnp.interfaces.NamingContextFacto
 ry

 We have verified that all our settings, etc.,  are correct, as we can do
 this
 successfully using tomcat3.2.

 I have seen various references to similar problems in the archives, but
 none that seemed to be relevant to the catalina build.

 In the meanwhile, we are reverting to 3.2

 thanks,

 dan




RE: Generating a random alphanumeric string

2001-03-01 Thread Anil

Cato,
Here is code that I tried out for generating a user id using the user name
I have to pass a string and it returns a 8 digit alpha numeric
Hope it helps,

Anil


  public static String getCode(String text){
 String code = "";


text = text.trim();
if(text.length()1){
return null;
}
text = text.toUpperCase();
if(random==null){
random = new java.util.Random();
}
String code_temp = "";
 int no_of_chars = 3 ; //not of chars from text

for(int i=0;ino_of_chars;i++){
  code_temp =
String.valueOf(text.charAt(random.nextInt(text.length(;
  if(code_temp.equals(" ")){
i--;
   }else{
code = code + code_temp;
   }
}

code = code + java.lang.String.valueOf(random.nextInt(1));
java.util.Date date = new java.util.Date();
code = code + java.lang.String.valueOf(date.getDate());
}catch(Exception e){
return null;
}
return code;

}





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




Re: Cannot run two servlets

2001-01-24 Thread anil

Hi Alan,

check the process that you read data from.

hope this helps

anil

"BROWN, ALAN" wrote:

 We have developed a simple web application with two HTML forms.  The user
 enters a lookup parameter on the form and submits it.  We have a Java
 servlet that does retrieves the HTML form data, does a lookup via

 another
 program,

May be this  is the problem...


 and then builds HTML that is returned to the browser.



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




Re: Tomcat and PostgreSQL

2000-12-25 Thread anil

Hi Hiroshi,

You can copy postgresql.jar to your $tomcat/lib folder.

anil

"NSB)$B3^(B" wrote:
 
 It seems that Tomcat cannot find jdbc Driver,or postgresql.jar.When
 "http://127.0.0.1:8080/jdbc_servlet/servlet/postgresql_servlet" is
 accessed,
 an error message is shown of
 "java.lang.ClassNotFoundException;org.postgresql.Driver".
 What do I need to do in order to let Tomcat know the position of
 postgresql.jar?
 Please help me out. I have not found any clues for two weeks.
 Thanks in advance.
 
 Hiroshi Kasamatsu