Can't run servlets

2003-12-26 Thread X V Jay
Hi,
I have been unable to run servelets using my tomacat. I have put the 
class file in WEB-INF\classes. Please tell me where did I go wrong ?
Thank you
X V Jay


Here is the source
=
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class TestingServlet extends HttpServlet {

  public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {

PrintWriter out = response.getWriter();
out.println(HTML);
out.println(HEAD);
out.println(TITLEServlet Testing/TITLE);
out.println(/HEAD);
out.println(BODY);
out.println(Welcome to the Servlet Testing Center);
out.println(/BODY);
out.println(/HTML);
  }
}


Here is the web.xml
=
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
servlet
servlet-nameTestingServlet/servlet-name
servlet-classTestingServlet/servlet-class
/servlet
/web-app
===

Error message generated
==

HTTP Status 404 - /myJspApps/servlet/TestingServlet

--
type Status report

message /myJspApps/servlet/TestingServlet

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


---

Apache Tomcat/4.1.27

=

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



RE: Problem....Hangs up

2003-12-26 Thread Zsolt Koppany
If you use Redhat-9 you might need

export LD_ASSUME_KERNEL=2.4.1

before you start tomcat.

Zsolt

 -Original Message-
 From: Chelisant Pavel [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 24, 2003 2:10 PM
 To: [EMAIL PROTECTED]
 Subject: ProblemHangs up


 Good day!
 Ive got Tomcat running as stand-alone web server + Java
 Tomcat configured with SSL connector on port 443.
 Its all ok.. and working properly..
 But after three - four days of working it quits process user
 requests.. and hangs-up..

 ---
 server.xml config file

 !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=443
minProcessors=5 maxProcessors=1
enableLookups=false compression=force
connectionLinger=3 connectionTimeout=12
acceptCount=2000 debug=0 scheme=https secure=true
useURIValidationHack=false disableUploadTimeout=false

Factory
 className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
clientAuth=false keystorePass=tomcat
 keystoreFile=/home/tomcat/keystore/.keystore protocol=
 TLS /
 /Connector

 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=1
enableLookups=false redirectPort=8443
acceptCount=2000 debug=0

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 --




 Here the log files i got..


 its Linux top ( take notice of memory usage and size )

  11:24:28  up 27 days, 23:05,  1 user,  load average: 0.82, 0.44, 0.17
 1049 processes: 1048 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states:   0.9% user  89.4% system   0.0% nice   0.0% iowait
 9.5% idle
 Mem:   516724k av,  511824k used,4900k free,   0k shrd,
 31640k buff
298968k active, 193000k inactive
 Swap: 1044216k av,  487764k used,  556452k free
  9448k cached


   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
  10604 root  17   0  2392 2392   888 R90.2  0.4   5:22   0 top
  7757 root   9   0  558M 433M  352M S 0.0 85.8   3:30   0 java

 here netstat -a
 

 tcp0  0 update.registru.m:https 192.168.150.249:59726
   TIMA_WAIT
 . thousands of unclosed connections
 tcp0  0 update.registru.m:https 192.168.150.249:59780
   TIME_WAIT

 Why this connections are still open? But in that period i havent
 got users used my server...


  ---here
 logs--



   11:28:19  up 27 days, 23:09,  1 user,  load average: 0.89, 0.69, 0.33
  File: localhos~-23.txt  Col 0  21726 bytes
  0%
  2003-12-23 15:11:08 ApplicationDispatcher[] Servlet.service()
 for servlet jsp threw exception
  org.apache.jasper.JasperException: Connection has been shutdown:
 javax.net.ssl.SSLException: java.net.SocketExce
  ption: Broken pipe
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:248)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD
 ispatcher.java:684)
  at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(Applicati
 onDispatcher.java:575)
  at
 org.apache.catalina.core.ApplicationDispatcher.include(Application
 Dispatcher.java:498)
  at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibr
 ary.java:822)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:95)
  at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:204)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplicationFilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterChain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.java:260)
  at
 

Applet in jsp

2003-12-26 Thread dhayalan
hi all currently i calling the java applet in jsp page in tomcat while running the 
page it gives the applet loading finelly it gives the following error pls give me the 
solution


Dhayalan.G
[EMAIL PROTECTED] Html]# appletviewer -J-Djava.security.policy=mypolicy testtimer.htm
Exception in thread main java.util.MissingResourceException: Can't find resource for 
bundle sun.applet.resources.MsgAppletViewer, key appletpanel.badattribute.exception
at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
at java.util.ResourceBundle.getString(ResourceBundle.java:274)
at sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:39)
at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:755)
at sun.applet.AppletPanel.init(AppletPanel.java:190)
at sun.applet.AppletViewer.init(AppletViewer.java:177)
at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:82)
at sun.applet.AppletViewer.parse(AppletViewer.java:1122)
at sun.applet.AppletViewer.parse(AppletViewer.java:1056)
at sun.applet.Main.run(Main.java:138)
at sun.applet.Main.main(Main.java:80)
java.lang.RuntimeException: java.security.AccessControlException: access denied 
(java.net.SocketPermission 127.0.0.1:8080 connect,resolve)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:589)
at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1479)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:281)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:263)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
at sun.applet.AppletPanel.run(AppletPanel.java:298)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.security.AccessControlException: access denied 
(java.net.SocketPermission
127.0.0.1:8080 connect,resolve)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1026)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:568)
at sun.net.www.http.HttpClient.init(HttpClient.java:306)
at sun.net.www.http.HttpClient.init(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
... 13 more


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



Re: Problem....Hangs up

2003-12-26 Thread Remy Maucherat
Chelisant Pavel wrote:
Good day!
Ive got Tomcat running as stand-alone web server + Java
Tomcat configured with SSL connector on port 443.
Its all ok.. and working properly..
But after three - four days of working it quits process user requests.. and hangs-up..
Good. You included everything that is not essential information that is: 
which OS you're using (what Linux ?), which Tomcat release, and a thread 
dump (since Tomcat is hanging).

There has been a SSL bug similar to what you experience which has been 
fixed (in 4.1.24).

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can't run servlets

2003-12-26 Thread Antony Paul
You have to declare the url mappings for servlets. Do this after all servlet
declarations. Like this
servlet
servlet-nameTestingServlet/servlet-name
servlet-classTestingServlet/servlet-class
/servlet

servlet-mapping
  servlet-nameTestingServlet/servlet-name
  url-pattern/TestingServlet/url-pattern
 /servlet-mapping

Another way is using the invoker servlet provided by Tomcat. If using
invoker servlet no need of servlet mapping. But it have security bugs and is
disabled by default.

Antony Paul.

- Original Message -
From: X V Jay [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 26, 2003 1:43 PM
Subject: Can't run servlets


 Hi,
 I have been unable to run servelets using my tomacat. I have put the
 class file in WEB-INF\classes. Please tell me where did I go wrong ?
 Thank you
 X V Jay


 Here is the source
 =
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 import java.util.*;

 public class TestingServlet extends HttpServlet {

   public void doGet(HttpServletRequest request,
 HttpServletResponse response)
 throws ServletException, IOException {

 PrintWriter out = response.getWriter();
 out.println(HTML);
 out.println(HEAD);
 out.println(TITLEServlet Testing/TITLE);
 out.println(/HEAD);
 out.println(BODY);
 out.println(Welcome to the Servlet Testing Center);
 out.println(/BODY);
 out.println(/HTML);
   }
 }
 

 Here is the web.xml
 =
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

 web-app
 servlet
 servlet-nameTestingServlet/servlet-name
 servlet-classTestingServlet/servlet-class
 /servlet
 /web-app
 ===

 Error message generated
 ==

 HTTP Status 404 - /myJspApps/servlet/TestingServlet

 --
 type Status report

 message /myJspApps/servlet/TestingServlet

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


 ---

 Apache Tomcat/4.1.27

 =

 -
 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[2]: Problem....Hangs up

2003-12-26 Thread Chelisant Pavel
Hello Remy,

Friday, December 26, 2003, 11:38:15 AM, you wrote:

RM Chelisant Pavel wrote:
 Good day!
 Ive got Tomcat running as stand-alone web server + Java
 Tomcat configured with SSL connector on port 443.
 Its all ok.. and working properly..
 But after three - four days of working it quits process user requests.. and 
 hangs-up..

RM Good. You included everything that is not essential information that is:
RM which OS you're using (what Linux ?), which Tomcat release, and a thread
RM dump (since Tomcat is hanging).

RM There has been a SSL bug similar to what you experience which has been
RM fixed (in 4.1.24).


Well ive got RedHat 9 + kernel 2.4.21
Tomcat  4.1
Java 1.4.1

-- 
Best regards,
 Chelisantmailto:[EMAIL PROTECTED]


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



Re: How to: Tomcat 5.0.16 as Windows Service

2003-12-26 Thread Merrill Cornish
Bill,

   Thanks for the information.  I was worried about the command line length.  Where 
can I find documentation for the various //?// commands?

Thanks again,
Merrill

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



Re: Problem....Hangs up

2003-12-26 Thread Remy Maucherat
Chelisant Pavel wrote:

Hello Remy,

Friday, December 26, 2003, 11:38:15 AM, you wrote:

RM Chelisant Pavel wrote:

Good day!
Ive got Tomcat running as stand-alone web server + Java
Tomcat configured with SSL connector on port 443.
Its all ok.. and working properly..
But after three - four days of working it quits process user requests.. and hangs-up..


RM Good. You included everything that is not essential information that is:
RM which OS you're using (what Linux ?), which Tomcat release, and a thread
RM dump (since Tomcat is hanging).
RM There has been a SSL bug similar to what you experience which has been
RM fixed (in 4.1.24).
Well ive got RedHat 9 + kernel 2.4.21
There are stability issues on RH 9: use LD_ASSUME_KERNEL=2.4.1 in addition.

Tomcat  4.1
pulling_teeth
4.1.what ?
/pulling_teeth
Java 1.4.1
--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat cache problem

2003-12-26 Thread Baºak
Hi,
 
I am new in the list, I tried to make a search on the subject in the previous mails of 
the list, however I could not find where to do it. So, apologies if the problem is 
addressed before.

I have a cahce problem in the following working environment:

redhat linux 9.0
jakarta tomcat 4.1.27

When I change a class, the change cannot be seen until I erase the contents of 
work/standalone folder and shutdown  restart tomcat.
I was able to solve the same problem on suse linux 8.1 and windows 2000 prof. by 
adding server.xml the line

Context path= docBase=ROOT debug=0 reloadable=true/

in Host. However it does not work here. Any ideas will be greatly appreciated. Thanks 
in advance.

Basak



-
Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square

Re: taglibs moving from 4.X to 5.X !!! lots of text

2003-12-26 Thread daniel
ok here goes
tld then jsp at bottom

TLD--
?xml version=1.0 encoding=UTF-8 ?

!DOCTYPE taglib
PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd;



taglib
tlib-version1.0/tlib-version
jsp-version1.2/jsp-version
short-nameetrakplus/short-name
uri//uri
display-nameetrakplus/display-name
descriptionA blank tag library template.
/description
!-- Forte4J_TLDX:  This comment contains code generation information.
Do not delete.
tldx

tagHandlerGenerationRoot.\WEB-INF\classes\/tagHandlerGenerationRoot
/tldx
--tag
nameItemListByKeyWordTag/name
tag-classcom.etrakplus.ItemListByKeyWordTag/tag-class
body-contentJSP/body-content
display-nameItemListByKeyWordTag/display-name
description/description
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
packagenamecom.etrakplus/packagename

extendsSupportClassTRUE/extendsSupportClass
supportClassBodyTagSupport/supportClass
implementsTryCatchFinallyFALSE/implementsTryCatchFinally
findparentFALSE/findparent
/tldx
--
attribute
namekeyWord/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
typeString/type
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
javaVariablekeyWord/javaVariable
defaultValue/defaultValue
IsReferenceIDFALSE/IsReferenceID
ReferencesTagFALSE/ReferencesTag
ReferenceScopeSession/ReferenceScope



ReferencesTagReferentFirstTRUE/ReferencesTagReferentFirst
/tldx
--
/attribute
example/example
/tag
tag
nameCurrentParticipantsRSTag/name
tag-classcom.etrakplus.CurrentParticipantsRSTag/tag-class
body-contentJSP/body-content
display-nameCurrentParticipantsRSTag/display-name
description/description
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
packagenamecom.etrakplus/packagename

extendsSupportClassTRUE/extendsSupportClass
supportClassBodyTagSupport/supportClass
implementsTryCatchFinallyFALSE/implementsTryCatchFinally
findparentFALSE/findparent
/tldx
--
example/example
/tag
tag
nameShortTitleRSTag/name
tag-classcom.etrakplus.ShortTitleRSTag/tag-class
body-contentJSP/body-content
description/description
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
packagenamecom.etrakplus/packagename
extendsSupportClassTRUE/extendsSupportClass
supportClassBodyTagSupport/supportClass
implementsTryCatchFinallyFALSE/implementsTryCatchFinally
findparentFALSE/findparent
/tldx
--
example/example
/tag
tag
nameLongTitleRSTag/name
tag-classcom.etrakplus.LongTitleRSTag/tag-class
body-contentJSP/body-content
description/description
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
packagenamecom.etrakplus/packagename
extendsSupportClassTRUE/extendsSupportClass
supportClassBodyTagSupport/supportClass
implementsTryCatchFinallyFALSE/implementsTryCatchFinally
findparentFALSE/findparent
/tldx
--
example/example
/tag
tag
nameButtonTitleRSTag/name
tag-classcom.etrakplus.ButtonTitleRSTag/tag-class
body-contentJSP/body-content
description/description
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
packagenamecom.etrakplus/packagename
extendsSupportClassTRUE/extendsSupportClass
supportClassBodyTagSupport/supportClass
implementsTryCatchFinallyFALSE/implementsTryCatchFinally
findparentFALSE/findparent
/tldx
--
example/example
/tag
tag
nameNotesRSTag/name
tag-classcom.etrakplus.NotesRSTag/tag-class
body-contentJSP/body-content
description/description
!-- Forte4J_TLDX:  This comment contains code generation
information. Do not delete.
tldx
packagenamecom.etrakplus/packagename
extendsSupportClassTRUE/extendsSupportClass
supportClassBodyTagSupport/supportClass
implementsTryCatchFinallyFALSE/implementsTryCatchFinally
findparentFALSE/findparent
/tldx
--
example/example
/tag
tag

Re[2]: Problem....Hangs up

2003-12-26 Thread Chelisant Pavel
Hello Remy,

Friday, December 26, 2003, 2:32:21 PM, you wrote:

RM Chelisant Pavel wrote:

 Hello Remy,
 
 Friday, December 26, 2003, 11:38:15 AM, you wrote:
 
 RM Chelisant Pavel wrote:
 
Good day!
Ive got Tomcat running as stand-alone web server + Java
Tomcat configured with SSL connector on port 443.
Its all ok.. and working properly..
But after three - four days of working it quits process user requests.. and 
hangs-up..
 
 
 RM Good. You included everything that is not essential information that is:
 RM which OS you're using (what Linux ?), which Tomcat release, and a thread
 RM dump (since Tomcat is hanging).
 
 RM There has been a SSL bug similar to what you experience which has been
 RM fixed (in 4.1.24).
 
 
 Well ive got RedHat 9 + kernel 2.4.21

RM There are stability issues on RH 9: use
RM LD_ASSUME_KERNEL=2.4.1 in addition.

 Tomcat  4.1

RM pulling_teeth
RM 4.1.what ?
RM /pulling_teeth
Sorry a made a mistake
Tomcat 4.0 (release/v4.0-b7/)
 Java 1.4.1




-- 
Best regards,
 Chelisantmailto:[EMAIL PROTECTED]


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



is it planned to support EAR files in Tomcat?

2003-12-26 Thread Alexey Skorokhodov
hi!

as I know, Tomcat does not support EAR modules.
so,  how can I communicate  between two WAR-files ?

I need to have something like 'gate', when java code from one WAR sends
a message and a class from second WAR receives this message.
I can create additional JAR file to store such 'gate', but afaik different WAR-files
will have their own instances of such 'gate', which is not acceptable - they will not 
communicate.

so, how to communicate in this situation (without using a database) ?
I have read in Tomcat FAQ that EAR files are not supported because
'EJBs are not supported.
But in this case I don't need EJB, I to have two war files in one
class-loader.

I know that 'common' and 'shared' folders can be used to share files.
But in this case this application won't be compatible with other
Appservers and servlet runners.

thanks! Alexey.


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



RE: java.lang.OutOfMemoryError

2003-12-26 Thread Lam Chee Choong
hm..i see...but I am working on a server with 4GB of RAM,I think it should
have more than enough??anyway u did mention about closing connection, what
connection u mean?

-Original Message-
From: akki [mailto:[EMAIL PROTECTED]
Sent: 26 December 2003 10:51 AM
To: Tomcat Users List
Subject: RE: java.lang.OutOfMemoryError


yeah i also encountered this problem
actaully it is bcoz u  r not closing any connection and eventually it  is
eating up ram
u can check for it
or increase ur RAM size

-Original Message-
From: Lam Chee Choong [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 25, 2003 8:22 PM
To: [EMAIL PROTECTED]
Subject: java.lang.OutOfMemoryError


 i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the
java.lang.OutOfMemoryError error when i trying to reload my application.this
does not happen frequenly. it was like every 10 times i reload and 3 times
the error came out. i can restart the tomcat and it work fine.
 does everybody encounter this b4?




-
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: tomcat cache problem

2003-12-26 Thread Lam Chee Choong
I also encounter the problem b4, but what i did is just add some comment to
my java source file and compile it again to increase the file size.
eventually Tomcat detect the changes of file size and reload the class. This
also work with JSP file.

-Original Message-
From: Ba:ak Aksan [mailto:[EMAIL PROTECTED]
Sent: 26 December 2003 8:48 PM
To: [EMAIL PROTECTED]
Subject: tomcat cache problem


Hi,

I am new in the list, I tried to make a search on the subject in the
previous mails of the list, however I could not find where to do it. So,
apologies if the problem is addressed before.

I have a cahce problem in the following working environment:

redhat linux 9.0
jakarta tomcat 4.1.27

When I change a class, the change cannot be seen until I erase the contents
of work/standalone folder and shutdown  restart tomcat.
I was able to solve the same problem on suse linux 8.1 and windows 2000
prof. by adding server.xml the line

Context path= docBase=ROOT debug=0 reloadable=true/

in Host. However it does not work here. Any ideas will be greatly
appreciated. Thanks in advance.

Basak



-
Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square



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



Regarding the Errors Generated While Accessing the JSP's using the tomcat 4.1

2003-12-26 Thread salla srinivas
Hi ,
   I am Tomcat 4.1 user . I have actually Integrated Apache2.0 server with Tomcat 
4.1 server for working with the project . So, when you say http://localhost it should 
display my home page of the project . My Home page consist of two JSP's called top.jsp 
and main.jsp the top.jsp is getting displayed properly but it is not displaying the 
main.jsp and it is giving an error like this .
 
 
HTTP Status 500 - 
-

type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 
org.apache.jasper.JasperException   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)  
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)  
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)  at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)  
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)  
  at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)  at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)  at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
 at java.lang.Thread.run(Thread.java:536)



root cause 
javax.servlet.ServletException  at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
  at org.apache.jsp.main_jsp._jspService(main_jsp.java:661)   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)  
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)  at
 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)at 

Re: java.lang.OutOfMemoryError

2003-12-26 Thread Antony Paul
Please specify the OS version. A similar thread is there .

Antony Paul
- Original Message -
From: Lam Chee Choong [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 26, 2003 8:11 PM
Subject: RE: java.lang.OutOfMemoryError


 hm..i see...but I am working on a server with 4GB of RAM,I think it should
 have more than enough??anyway u did mention about closing connection, what
 connection u mean?

 -Original Message-
 From: akki [mailto:[EMAIL PROTECTED]
 Sent: 26 December 2003 10:51 AM
 To: Tomcat Users List
 Subject: RE: java.lang.OutOfMemoryError


 yeah i also encountered this problem
 actaully it is bcoz u  r not closing any connection and eventually it  is
 eating up ram
 u can check for it
 or increase ur RAM size

 -Original Message-
 From: Lam Chee Choong [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 25, 2003 8:22 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.OutOfMemoryError


  i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the
 java.lang.OutOfMemoryError error when i trying to reload my
application.this
 does not happen frequenly. it was like every 10 times i reload and 3 times
 the error came out. i can restart the tomcat and it work fine.
  does everybody encounter this b4?




 -
 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]



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



servlets marked as unavailable

2003-12-26 Thread Thomas Goorden
Hi,

We're using tomcat 4.0.3 on our production server and there seems to be
some odd behaviour with the automatic reloading of contexts. This is
what happens:

1. A reload of the context is triggered because of an update of the code
on the server (via ftp upload).
2. A servlet gets marked as unavailable because the class-loader can't
find the necessary class (eg the appropriate jar file with the servlet
isn't present yet).
3. The necessary jar file ends up on the server.
4. The context reloads again and the servlet in question starts-up
automatically 
(load-on-startup0/load-on-startup), generating logs and other
infromation that clearly indicate it has started correctly this time.
5. The servlet stays unavailable (503 errors get reported) according to
Tomcat.

Is there a known issue with servlets marked as unavailable not coming
back (available) after an automatic reloading of the context?

A more general question: what would be the best reloading scenario on a
production server? We're in a case where the developper that needs to
redeploy an application can't restart tomcat. We're using virtual hosts
as well, so the manager application seems insufficiënt.

Regards,
Thomas Goorden


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



Re: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Hari Om
Thanks Jerry
I tried to delete the MOD_JK2.SO from my APACHE/MODULESA Directory...but 
still my CATALINA.OUT files hsows reference of it wonder why.


From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Wed, 24 Dec 2003 14:07:31 -0800
Hari:

To remove mod_jk2, just delete mod_jk2.so from your apache/libexec 
directory and delete the references to it from your Apache config 
(httpd.conf).

As for tomcat continuing to listen, that's because you have a mod_jk2 
connector defined in tomcat's server.xml.

Just because tomcat is listening for it does not mean mod_jk2 is working.

Somebody else will have to address the questions about value---I don't use 
mod_jk2, I have mod_jk, but I also don't use apache 2.x, I have apache 1.3. 
I believe jk2 is designed for apache 2.

As for jk2 references in jk configs, yes, jk2 shows up in my catalina.out, 
too, and I've never installed mod_jk2. It appears to just be some sloppy 
reference in a log message. It doesn't mean anything significant. I mean, 
it all still works. :)

Jerry

Hari Om wrote:

I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE Linux 8.0. 
I would like to use Connector for integrating Apache  Tomcat. I have 
installed MOD_JK2 and want to get rid of it. How can I uninstall it? WHen 
I run my Tomcat it still refers to JK2 settings. I wanted to use JK 
instead. Can anyone please help me on this.

Few more questions:
1) Is it worth using MOD_JK2 v/s MOD_JK?
2) I already installed MOD_JK2 and it does NOT seems to WORK...so wanted 
to get rid of it. I wanted to see if MOD_JK works. How is this possible? 
Deleting the jk2.properties and worker2.properties  DOES NOT 
WORKcatalina.out file still shows TOMCAT is refereing to JK as shown 
below:
---

INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2003 11:33:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 24, 2003 11:33:56 AM org.apache.jk.server.JkMain start
---
Can anyone please Help Me.

Thanks and Merry XMAS!

HARI OM

_
Enjoy a special introductory offer for dial-up Internet access — limited 
time only! http://join.msn.com/?page=dept/dialup

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


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Worried about inbox overload? Get MSN Extra Storage now!  
http://join.msn.com/?PAGE=features/es

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


Re: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Jerry Ford
do you still have the Coyote connector defined in the tomcat server.xml?

Hari Om wrote:

Thanks Jerry
I tried to delete the MOD_JK2.SO from my APACHE/MODULESA 
Directory...but still my CATALINA.OUT files hsows reference of it 
wonder why.


From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Wed, 24 Dec 2003 14:07:31 -0800
Hari:

To remove mod_jk2, just delete mod_jk2.so from your apache/libexec 
directory and delete the references to it from your Apache config 
(httpd.conf).

As for tomcat continuing to listen, that's because you have a mod_jk2 
connector defined in tomcat's server.xml.

Just because tomcat is listening for it does not mean mod_jk2 is 
working.

Somebody else will have to address the questions about value---I 
don't use mod_jk2, I have mod_jk, but I also don't use apache 2.x, I 
have apache 1.3. I believe jk2 is designed for apache 2.

As for jk2 references in jk configs, yes, jk2 shows up in my 
catalina.out, too, and I've never installed mod_jk2. It appears to 
just be some sloppy reference in a log message. It doesn't mean 
anything significant. I mean, it all still works. :)

Jerry

Hari Om wrote:

I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE Linux 
8.0. I would like to use Connector for integrating Apache  Tomcat. 
I have installed MOD_JK2 and want to get rid of it. How can I 
uninstall it? WHen I run my Tomcat it still refers to JK2 settings. 
I wanted to use JK instead. Can anyone please help me on this.

Few more questions:
1) Is it worth using MOD_JK2 v/s MOD_JK?
2) I already installed MOD_JK2 and it does NOT seems to WORK...so 
wanted to get rid of it. I wanted to see if MOD_JK works. How is 
this possible? Deleting the jk2.properties and worker2.properties 
 DOES NOT WORKcatalina.out file still shows TOMCAT is refereing 
to JK as shown below:
--- 

INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2003 11:33:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 24, 2003 11:33:56 AM org.apache.jk.server.JkMain start
--- 



Can anyone please Help Me.

Thanks and Merry XMAS!

HARI OM

_
Enjoy a special introductory offer for dial-up Internet access  
limited time only! http://join.msn.com/?page=dept/dialup

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




-
The official User-To-User support forum of the Apache HTTP Server 
Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
Worried about inbox overload? Get MSN Extra Storage now! 
http://join.msn.com/?PAGE=features/es

-
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: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Hari Om
Thanks!
These are the ONLY things I added to my SERVER.XML:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
THANKS!

HARI OM

From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Fri, 26 Dec 2003 09:38:09 -0800
do you still have the Coyote connector defined in the tomcat server.xml?

Hari Om wrote:

Thanks Jerry
I tried to delete the MOD_JK2.SO from my APACHE/MODULESA Directory...but 
still my CATALINA.OUT files hsows reference of it wonder why.


From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Wed, 24 Dec 2003 14:07:31 -0800
Hari:

To remove mod_jk2, just delete mod_jk2.so from your apache/libexec 
directory and delete the references to it from your Apache config 
(httpd.conf).

As for tomcat continuing to listen, that's because you have a mod_jk2 
connector defined in tomcat's server.xml.

Just because tomcat is listening for it does not mean mod_jk2 is working.

Somebody else will have to address the questions about value---I don't 
use mod_jk2, I have mod_jk, but I also don't use apache 2.x, I have 
apache 1.3. I believe jk2 is designed for apache 2.

As for jk2 references in jk configs, yes, jk2 shows up in my 
catalina.out, too, and I've never installed mod_jk2. It appears to just 
be some sloppy reference in a log message. It doesn't mean anything 
significant. I mean, it all still works. :)

Jerry

Hari Om wrote:

I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE Linux 
8.0. I would like to use Connector for integrating Apache  Tomcat. I 
have installed MOD_JK2 and want to get rid of it. How can I uninstall 
it? WHen I run my Tomcat it still refers to JK2 settings. I wanted to 
use JK instead. Can anyone please help me on this.

Few more questions:
1) Is it worth using MOD_JK2 v/s MOD_JK?
2) I already installed MOD_JK2 and it does NOT seems to WORK...so wanted 
to get rid of it. I wanted to see if MOD_JK works. How is this possible? 
Deleting the jk2.properties and worker2.properties  DOES NOT 
WORKcatalina.out file still shows TOMCAT is refereing to JK as shown 
below:
---

INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2003 11:33:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 24, 2003 11:33:56 AM org.apache.jk.server.JkMain start
---


Can anyone please Help Me.

Thanks and Merry XMAS!

HARI OM
_
Enjoy a special introductory offer for dial-up Internet access — limited 
time only! http://join.msn.com/?page=dept/dialup

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


Re: Problem....Hangs up

2003-12-26 Thread Remy Maucherat
Chelisant Pavel wrote:
RM pulling_teeth
RM 4.1.what ?
RM /pulling_teeth

Sorry a made a mistake
Tomcat 4.0 (release/v4.0-b7/)
Your stack traces indiate you're using Tomcat 4.1.x, definitely not 4.0 
b7. I don't know which release exactly though.
As I said, you need TC 4.1.x = 4.1.24 to have no problems with SSL (and 
LD_ASSUME_KERNEL can't hurt either).

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Need Help - Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS)

2003-12-26 Thread Lenny Sorey
I've got problems with Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk + Windows 2000 Server.

I keep getting errors started Apache 2.0.48 when I have JKMount /mysite/ * .jsp within 
VirtualHost section of http.conf.

I've used mod_jk with past versions of Tomcat, Apache and Windows 2000 without any 
problems.

So, I've decided to move on to Mod_jk2.

Questions that I have regarding Mod_jk2 with Win2K.

1. Do I have to use Tomcat 4.1.29 LE? I prefer to use the full blown version of Tomcat 
4.1.29.

All I have found regarding with Windows 2000 is to use Tomcat 4.1.29 LE.

If I have to Tomcat LE, what benefits do I gain by using Tomcat LE?

Does anyone have an Example of the configuration I need for Windows 2000 with no IIS 
regarding the following.

1. Worker2.properties to be located in my D:\java\Apache2\conf directory
2. jk2.properties located in my D:\java\Tomcat41\conf directory
3. http.conf
4. server.xml

Items 3  4 if there is anything different from mod_jk set up.

I've tried all the examples I can find regarding Apache 2.0.48 + Tomcat 4.1.29 + 
Mod_jk2 + Windows 2000 Server
and I cannot get anything working.

Reading on the Tomcat User List regarding mod_jk2, for those who have mod_jk2 working, 
it seems that those
folks are very satisfied with mod_jk2 over mod_jk.

I have couple of Tomcat 4.1.29 applications that I desperately need to get working 
either mod_jk or Mod_jk2.

I need to deploy two websites on one server sharing one ip address.

Here's the platform that I am using:

Windows 2000 Server - no IIS
Tomcat 4.1.29
Apache Http Server 2.0.48
Mod_jk or Mod_jk2
J2SDK 1.4.2
MySQL 4.1.0

Many thanks to anyone who can help me.

Happy Holidays to all.






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



Re: Need Help - Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS)

2003-12-26 Thread Mark Eggers
Check 

http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

and see if that information helps.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Help with configuring

2003-12-26 Thread Vinny
Hello.

I just installed Apache 2.0.48 and Tomcat 5.0.16 (using a Java 2 1.4 SDK) on
Windows XP Home (It's a development environment, on my laptop). I'm having a
bit of trouble getting the two to play together.

I installed both of them using the provided binaries off the Apache project
servers, and both seem to be running, there are tray icons both showing
green, no obvious errors. In addition, when I navigate to http://localhost,
I can see the default Apache page.

I have CATALINA_HOME and JAVA_HOME environmental variables set as well.

I can't access the Tomcat configuration page (the program files group links
to http://127.0.01/admin as the configuration page, but it shows up as a
404). I haven't done any config other than run the installation routines.
What other things do I need to set up and/or check? I did read the manual,
but all it said was that for Windows, I should just run the installation
routine. Should I downgrade to Apache 1.3.29, or anything else? Thanks in
advance.

-Vinny


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



Memory comsuption

2003-12-26 Thread Luis Daniel Alvarez
Hi list
I'm having problem with my memory, as you can see from my top command I get this:

Mem:  2323420K av, 2239036K used,   84384K free,   0K shrd,  330720K buff
Swap: 2097096K av,   19176K used, 2077920K free 1576784K cached

PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
25772 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
25773 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
25774 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
25775 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java

This is just an example of 52 or 75 java process that always been running
What can I do to slow down memory comsuption of my java process.

I try solve this changing 
maxProcessors=75 to maxProcessors=15 and 
exporting CATALINA_OPTS=-Djava.awt.headless=true -Xmx1024m
but nothing change.

thanks in advance


Daniel Alvarez
ISP-InfoCom


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003

Re: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Hari Om
Any update son the following:

Thanks!
These are the ONLY things I added to my SERVER.XML:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=0
 useURIValidationHack=false
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

  !-- Define an AJP 1.3 Connector on port 8009 --
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
THANKS!

HARI OM






From: Hari Om [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Fri, 26 Dec 2003 17:59:07 +
Thanks!
These are the ONLY things I added to my SERVER.XML:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
THANKS!

HARI OM

From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Fri, 26 Dec 2003 09:38:09 -0800
do you still have the Coyote connector defined in the tomcat server.xml?

Hari Om wrote:

Thanks Jerry
I tried to delete the MOD_JK2.SO from my APACHE/MODULESA Directory...but 
still my CATALINA.OUT files hsows reference of it wonder why.


From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Wed, 24 Dec 2003 14:07:31 -0800
Hari:

To remove mod_jk2, just delete mod_jk2.so from your apache/libexec 
directory and delete the references to it from your Apache config 
(httpd.conf).

As for tomcat continuing to listen, that's because you have a mod_jk2 
connector defined in tomcat's server.xml.

Just because tomcat is listening for it does not mean mod_jk2 is 
working.

Somebody else will have to address the questions about value---I don't 
use mod_jk2, I have mod_jk, but I also don't use apache 2.x, I have 
apache 1.3. I believe jk2 is designed for apache 2.

As for jk2 references in jk configs, yes, jk2 shows up in my 
catalina.out, too, and I've never installed mod_jk2. It appears to just 
be some sloppy reference in a log message. It doesn't mean anything 
significant. I mean, it all still works. :)

Jerry

Hari Om wrote:

I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE Linux 
8.0. I would like to use Connector for integrating Apache  Tomcat. I 
have installed MOD_JK2 and want to get rid of it. How can I uninstall 
it? WHen I run my Tomcat it still refers to JK2 settings. I wanted to 
use JK instead. Can anyone please help me on this.

Few more questions:
1) Is it worth using MOD_JK2 v/s MOD_JK?
2) I already installed MOD_JK2 and it does NOT seems to WORK...so 
wanted to get rid of it. I wanted to see if MOD_JK works. How is this 
possible? Deleting the jk2.properties and worker2.properties  DOES 
NOT WORKcatalina.out file still shows TOMCAT is refereing to JK as 
shown below:
---

INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2003 11:33:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 24, 2003 11:33:56 AM org.apache.jk.server.JkMain start
---


Can anyone please Help Me.

Thanks and Merry XMAS!

HARI OM
_
Check your PC for viruses with the 

Re: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Jerry Ford
Hari:

Not sure what you are looking for at this point.

As I recall, after you removed mod_jk2.so from your $APACHE_HOME/libexec 
directory and removed references to mod_jk2 from httpd.conf, you were 
still seeing JK2 references in catalina.out.

Is that what you are still wondering about?

The answer is, it's because you still have the Coyote connector and 
listener elements defined in tomcat's server.xml file.

Catalina.out is tomcat's log file, so as long as you define a Coyote 
connector in the server.xml file you're going to se JK/JK2 references 
there, regardless of whether or not you are actually still using mod_jk2.

That only means tomcat is listening for handoffs from Apache.  Since you 
no longer have mod_jk2.so installed, there's nothing for tomcat to hear, 
but that doesn't stop it from listening.

Put comment strings around those elements ( !-- ... -- ) and restart 
Tomcat, then check your catalina.out.  The references to JK should be gone.

Jerry

Hari Om wrote:

Any update son the following:

Thanks!
These are the ONLY things I added to my SERVER.XML:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=0
 useURIValidationHack=false
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

  !-- Define an AJP 1.3 Connector on port 8009 --
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
THANKS!

HARI OM






From: Hari Om [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Fri, 26 Dec 2003 17:59:07 +
Thanks!
These are the ONLY things I added to my SERVER.XML:
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info
 workersConfig=/usr/local/tomcat4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat4/logs/mod_jk.log/
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
THANKS!

HARI OM

From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Fri, 26 Dec 2003 09:38:09 -0800
do you still have the Coyote connector defined in the tomcat 
server.xml?

Hari Om wrote:

Thanks Jerry
I tried to delete the MOD_JK2.SO from my APACHE/MODULESA 
Directory...but still my CATALINA.OUT files hsows reference of it 
wonder why.


From: Jerry Ford [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: [EMAIL PROTECTED] Re: MOD_JK2 and MOD_JK on SuSE
Date: Wed, 24 Dec 2003 14:07:31 -0800
Hari:

To remove mod_jk2, just delete mod_jk2.so from your apache/libexec 
directory and delete the references to it from your Apache config 
(httpd.conf).

As for tomcat continuing to listen, that's because you have a 
mod_jk2 connector defined in tomcat's server.xml.

Just because tomcat is listening for it does not mean mod_jk2 is 
working.

Somebody else will have to address the questions about value---I 
don't use mod_jk2, I have mod_jk, but I also don't use apache 2.x, 
I have apache 1.3. I believe jk2 is designed for apache 2.

As for jk2 references in jk configs, yes, jk2 shows up in my 
catalina.out, too, and I've never installed mod_jk2. It appears to 
just be some sloppy reference in a log message. It doesn't mean 
anything significant. I mean, it all still works. :)

Jerry

Hari Om wrote:

I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE 
Linux 8.0. I would like to use Connector for integrating Apache  
Tomcat. I have installed MOD_JK2 and want to get rid of it. How 
can I uninstall it? WHen I run my Tomcat it still refers to JK2 
settings. I wanted to use JK instead. Can anyone please help me 

RE: Memory comsuption

2003-12-26 Thread George Sexton
I don't understand why you think you have a problem. 

You have a machine with 2GB of memory installed.

84MB is free RAM, and the OS is using 330MB of ram for cache buffers.  

Tomcat is using some 50MB of RAM.

The machine is clearly not under any kind of memory stress

FWIW, the memory options are case sensitive, and I think you need a
capital M at the end. Although, why you would want to limit RAM
consumption to 1GB, when you are complaining about tomcat using 50MB is
quite beyond me.

You may also want to search the web for linux ps threads

-Original Message-
From: Luis Daniel Alvarez [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 26, 2003 12:59 PM
To: Tomcat Users List
Subject: Memory comsuption


Hi list
I'm having problem with my memory, as you can see from my top command I
get this:

Mem:  2323420K av, 2239036K used,   84384K free,   0K shrd,  330720K
buff
Swap: 2097096K av,   19176K used, 2077920K free 1576784K
cached

PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
25772 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
25773 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
25774 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
25775 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java

This is just an example of 52 or 75 java process that always been
running
What can I do to slow down memory comsuption of my java process.

I try solve this changing 
maxProcessors=75 to maxProcessors=15 and 
exporting CATALINA_OPTS=-Djava.awt.headless=true -Xmx1024m
but nothing change.

thanks in advance


Daniel Alvarez
ISP-InfoCom


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003


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



Re: Memory comsuption

2003-12-26 Thread Luis Daniel Alvarez
What about the others 50 or 70 java process with 50M of memory comsuption
too?

Daniel Alvarez
ISP-InfoCom

- Original Message - 
From: George Sexton [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, December 26, 2003 3:30 PM
Subject: RE: Memory comsuption


 I don't understand why you think you have a problem.

 You have a machine with 2GB of memory installed.

 84MB is free RAM, and the OS is using 330MB of ram for cache buffers.

 Tomcat is using some 50MB of RAM.

 The machine is clearly not under any kind of memory stress

 FWIW, the memory options are case sensitive, and I think you need a
 capital M at the end. Although, why you would want to limit RAM
 consumption to 1GB, when you are complaining about tomcat using 50MB is
 quite beyond me.

 You may also want to search the web for linux ps threads

 -Original Message-
 From: Luis Daniel Alvarez [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 26, 2003 12:59 PM
 To: Tomcat Users List
 Subject: Memory comsuption


 Hi list
 I'm having problem with my memory, as you can see from my top command I
 get this:

 Mem:  2323420K av, 2239036K used,   84384K free,   0K shrd,  330720K
 buff
 Swap: 2097096K av,   19176K used, 2077920K free 1576784K
 cached

 PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 25772 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 25773 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 25774 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 25775 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java

 This is just an example of 52 or 75 java process that always been
 running
 What can I do to slow down memory comsuption of my java process.

 I try solve this changing
 maxProcessors=75 to maxProcessors=15 and
 exporting CATALINA_OPTS=-Djava.awt.headless=true -Xmx1024m
 but nothing change.

 thanks in advance


 Daniel Alvarez
 ISP-InfoCom


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003


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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003


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



RE: Memory comsuption

2003-12-26 Thread George Sexton
They are threads in the same process.

 You may also want to search the web for linux java ps threads

-Original Message-
From: Luis Daniel Alvarez [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 26, 2003 1:42 PM
To: Tomcat Users List
Subject: Re: Memory comsuption


What about the others 50 or 70 java process with 50M of memory
comsuption
too?

Daniel Alvarez
ISP-InfoCom

- Original Message - 
From: George Sexton [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, December 26, 2003 3:30 PM
Subject: RE: Memory comsuption


 I don't understand why you think you have a problem.

 You have a machine with 2GB of memory installed.

 84MB is free RAM, and the OS is using 330MB of ram for cache buffers.

 Tomcat is using some 50MB of RAM.

 The machine is clearly not under any kind of memory stress

 FWIW, the memory options are case sensitive, and I think you need a
 capital M at the end. Although, why you would want to limit RAM
 consumption to 1GB, when you are complaining about tomcat using 50MB
is
 quite beyond me.

 You may also want to search the web for linux ps threads

 -Original Message-
 From: Luis Daniel Alvarez [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 26, 2003 12:59 PM
 To: Tomcat Users List
 Subject: Memory comsuption


 Hi list
 I'm having problem with my memory, as you can see from my top command
I
 get this:

 Mem:  2323420K av, 2239036K used,   84384K free,   0K shrd,
330720K
 buff
 Swap: 2097096K av,   19176K used, 2077920K free
1576784K
 cached

 PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 25772 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 25773 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 25774 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 25775 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java

 This is just an example of 52 or 75 java process that always been
 running
 What can I do to slow down memory comsuption of my java process.

 I try solve this changing
 maxProcessors=75 to maxProcessors=15 and
 exporting CATALINA_OPTS=-Djava.awt.headless=true -Xmx1024m
 but nothing change.

 thanks in advance


 Daniel Alvarez
 ISP-InfoCom


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003


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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003


-
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: Memory comsuption

2003-12-26 Thread Luis Daniel Alvarez
Thank you so much for your atention

Daniel Alvarez
ISP-InfoCom

- Original Message - 
From: George Sexton [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, December 26, 2003 4:05 PM
Subject: RE: Memory comsuption


 They are threads in the same process.
 
  You may also want to search the web for linux java ps threads
 
 -Original Message-
 From: Luis Daniel Alvarez [mailto:[EMAIL PROTECTED] 
 Sent: Friday, December 26, 2003 1:42 PM
 To: Tomcat Users List
 Subject: Re: Memory comsuption
 
 
 What about the others 50 or 70 java process with 50M of memory
 comsuption
 too?
 
 Daniel Alvarez
 ISP-InfoCom
 
 - Original Message - 
 From: George Sexton [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, December 26, 2003 3:30 PM
 Subject: RE: Memory comsuption
 
 
  I don't understand why you think you have a problem.
 
  You have a machine with 2GB of memory installed.
 
  84MB is free RAM, and the OS is using 330MB of ram for cache buffers.
 
  Tomcat is using some 50MB of RAM.
 
  The machine is clearly not under any kind of memory stress
 
  FWIW, the memory options are case sensitive, and I think you need a
  capital M at the end. Although, why you would want to limit RAM
  consumption to 1GB, when you are complaining about tomcat using 50MB
 is
  quite beyond me.
 
  You may also want to search the web for linux ps threads
 
  -Original Message-
  From: Luis Daniel Alvarez [mailto:[EMAIL PROTECTED]
  Sent: Friday, December 26, 2003 12:59 PM
  To: Tomcat Users List
  Subject: Memory comsuption
 
 
  Hi list
  I'm having problem with my memory, as you can see from my top command
 I
  get this:
 
  Mem:  2323420K av, 2239036K used,   84384K free,   0K shrd,
 330720K
  buff
  Swap: 2097096K av,   19176K used, 2077920K free
 1576784K
  cached
 
  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  25772 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
  25773 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
  25774 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
  25775 tomcat49   0 51112  49M 11072 S 0.0  2.1   0:00 java
 
  This is just an example of 52 or 75 java process that always been
  running
  What can I do to slow down memory comsuption of my java process.
 
  I try solve this changing
  maxProcessors=75 to maxProcessors=15 and
  exporting CATALINA_OPTS=-Djava.awt.headless=true -Xmx1024m
  but nothing change.
 
  thanks in advance
 
 
  Daniel Alvarez
  ISP-InfoCom
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003
 
 
 -
 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]
 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 20/12/2003

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



Starting tomcat

2003-12-26 Thread Java User
Hi,
 
I am newbie for tomcat 5.0.16. I installed tomcat 5.0.16. When I am starting the 
server, the window appears but it closes by itself. I looked at the error and the very 
first error states that:
 
[ERROR] Digester - -Begin event threw error 
java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializerError: 
sun.misc.InvalidJarIndexException: Invalid index!
 
FYI, I have java version 1.3.0_02 and my JAVA_HOME variable is as follows:
set JAVA_HOME=D:\jdk1.3.0_02. I did not define CATALINA_HOME variable. It is, I 
guess, defined by the tomcat startup script.

Can somebody help???
 
Nishit


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Tomcat 5.0 Windows service memory configuration

2003-12-26 Thread David Frankson
How do I increase the JVM max heap size for the windows service for
Tomcat 5.0?  The faqs and documentation only mention Tomcat 4.x, and the
registry settings look different than the Tomcat 4 service.

Dave


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



Re: Help with configuring

2003-12-26 Thread Vinny
Thank you for the link. I managed to get everything set up (I used mod_jk).
Without the link, I wouldn't have known mod_jk was even needed... Although,
I have a few tiny questions:

When I navigate to http://localhost, I get a Tomcat home page (not the
Apache default one). http://localhost/admin also works now. But it seems
that Apache is now using Tomcat's help site as root, instead of %Apache
Directory%/htdocs, the default earlier. In addition, when I look at XP's
Services menu, it does NOT show the Apache webserver as Started. It shows
Tomcat has started, though. And, to make matters worse, the Apache tray icon
shows red, and when I bring up the Apache monitor and click the Start
button, it says an error has occured, unable to start.

So, what have I done here? Not that I'm complaining; I can now test my
servlets and JSP pages before sending them to the production server. Why is
Apache the http server giving errors, when obviously it's serving pages as
localhost? I fixed up everything as it says in the Wiki, and by all
accounts, the default root should still be in the Apache http server
/htdocs/ directory. So, what's wrong with this picture?

Also, where do I dl the javax.servlet class files for the java compiler?

Thanks

-Vinny.


 Vinny,

 I don't know if anyone responded to you.

 Try the following link for instructions for either mod_jk or mod_jk2.

 http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

 I just went through the instructions for mod_jk2 and got up and running
 in a few minutes.

 I'm using:
 Windows 2000 server
 Tomcat 4.1.29
 Apache 2.0.48
 J2SDK 1.4.2
 Mysql 4.1.0



 On Fri, 26 Dec 2003 13:00:12 -0600, Vinny wrote:

 Hello.
 
 I just installed Apache 2.0.48 and Tomcat 5.0.16 (using a Java 2 1.4 SDK)
on
 Windows XP Home (It's a development environment, on my laptop). I'm
having a
 bit of trouble getting the two to play together.
 
 I installed both of them using the provided binaries off the Apache
project
 servers, and both seem to be running, there are tray icons both showing
 green, no obvious errors. In addition, when I navigate to
http://localhost,
 I can see the default Apache page.
 
 I have CATALINA_HOME and JAVA_HOME environmental variables set as well.
 
 I can't access the Tomcat configuration page (the program files group
links
 to http://127.0.01/admin as the configuration page, but it shows up as a
 404). I haven't done any config other than run the installation routines.
 What other things do I need to set up and/or check? I did read the
manual,
 but all it said was that for Windows, I should just run the installation
 routine. Should I downgrade to Apache 1.3.29, or anything else? Thanks in
 advance.
 
 -Vinny


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



To LAM JEE RE: java.lang.OutOfMemoryError

2003-12-26 Thread akki
connection i mean any database connection or smtp etc.

On 26 Dec 2003 20:09 IST you wrote:

 hm..i see...but I am working on a server with 4GB of RAM,I think it should
 have more than enough??anyway u did mention about closing connection, what
 connection u mean?
 
 -Original Message-
 From: akki [mailto:[EMAIL PROTECTED]
 Sent: 26 December 2003 10:51 AM
 To: Tomcat Users List
 Subject: RE: java.lang.OutOfMemoryError
 
 
 yeah i also encountered this problem
 actaully it is bcoz u  r not closing any connection and eventually it  is
 eating up ram
 u can check for it
 or increase ur RAM size
 
 -Original Message-
 From: Lam Chee Choong [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 25, 2003 8:22 PM
 To: [EMAIL PROTECTED]
 Subject: java.lang.OutOfMemoryError
 
 
  i am using tomcal 4.1.18 with JDK 1.4.1_01. i encounter the
 java.lang.OutOfMemoryError error when i trying to reload my application.this
 does not happen frequenly. it was like every 10 times i reload and 3 times
 the error came out. i can restart the tomcat and it work fine.
  does everybody encounter this b4?
 
 
 
 
 -
 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]

--  
Contact me at:

Akhilesh Maurya
ITX BHEL HWR

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



Re: Help with configuring

2003-12-26 Thread akki
hello vinny

if u want to see tomcat default page u have to write 
http;//localhost:8080/
and in order to make tomcat serve as engine to apache u have to use mod_jk as connector
in b/w

bye


On 27 Dec 2003 00:26 IST you wrote:

 Hello.
 
 I just installed Apache 2.0.48 and Tomcat 5.0.16 (using a Java 2 1.4 SDK) on
 Windows XP Home (It's a development environment, on my laptop). I'm having a
 bit of trouble getting the two to play together.
 
 I installed both of them using the provided binaries off the Apache project
 servers, and both seem to be running, there are tray icons both showing
 green, no obvious errors. In addition, when I navigate to http://localhost,
 I can see the default Apache page.
 
 I have CATALINA_HOME and JAVA_HOME environmental variables set as well.
 
 I can't access the Tomcat configuration page (the program files group links
 to http://127.0.01/admin as the configuration page, but it shows up as a
 404). I haven't done any config other than run the installation routines.
 What other things do I need to set up and/or check? I did read the manual,
 but all it said was that for Windows, I should just run the installation
 routine. Should I downgrade to Apache 1.3.29, or anything else? Thanks in
 advance.
 
 -Vinny
 
 
 -
 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]



admin app is forbidden

2003-12-26 Thread Jerry Ford
I have Tomcat 4.1.27 running with Apache 1.3.27, using mod_jk, on a 
Linux box (Red Hat 9.0, but custom-installed Apache and Tomcat in 
/usr/local).

I am able to run Tomcat's example servlets, as well as my own custom 
servlets (installed as a webapp), and the Manager webapp, but when I try 
to view the Admin app, I get a  403 - resource has been forbidden message.

http://localhost/manager works fine, login screen is displayed, I log in 
and the app runs, but http://localhost/admin is forbidden to me.  I 
cannot find anything in the configs that would allow one but prohibit 
the other.  The Manager app shows /admin as running, and so do the 
logs.  I just can't get to it.

Can anyone tell me why I can't even get to the login screen before the 
admin app rejects my attempt? 

Thanks.

Jerry

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


Fw: Re: Can't run servlets

2003-12-26 Thread X V Jay
Hi,
I did what was told bt Antony. But the problem persists. Looking 
forward for help
Regards
X V Jay---BeginMessage---
declarations. Like this
servlet
servlet-nameTestingServlet/servlet-name
servlet-classTestingServlet/servlet-class
/servlet


You have to declare the url mappings for servlets. Do this after all servlet
declarations. Like this
servlet
servlet-nameTestingServlet/servlet-name
servlet-classTestingServlet/servlet-class
/servlet

servlet-mapping
  servlet-nameTestingServlet/servlet-name
  url-pattern/TestingServlet/url-pattern
 /servlet-mapping

Another way is using the invoker servlet provided by Tomcat. If using
invoker servlet no need of servlet mapping. But it have security bugs and is
disabled by default.

Antony Paul.

- Original Message -
From: X V Jay [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 26, 2003 1:43 PM
Subject: Can't run servlets


 Hi,
 I have been unable to run servelets using my tomacat. I have put the
 class file in WEB-INF\classes. Please tell me where did I go wrong ?
 Thank you
 X V Jay


 Here is the source
 =
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 import java.util.*;

 public class TestingServlet extends HttpServlet {

   public void doGet(HttpServletRequest request,
 HttpServletResponse response)
 throws ServletException, IOException {

 PrintWriter out = response.getWriter();
 out.println(HTML);
 out.println(HEAD);
 out.println(TITLEServlet Testing/TITLE);
 out.println(/HEAD);
 out.println(BODY);
 out.println(Welcome to the Servlet Testing Center);
 out.println(/BODY);
 out.println(/HTML);
   }
 }
 

 Here is the web.xml
 =
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

 web-app
 servlet
 servlet-nameTestingServlet/servlet-name
 servlet-classTestingServlet/servlet-class
 /servlet
 /web-app
 ===

 Error message generated
 ==

 HTTP Status 404 - /myJspApps/servlet/TestingServlet

 --
 type Status report

 message /myJspApps/servlet/TestingServlet

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


 ---

 Apache Tomcat/4.1.27

 =

 -
 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]


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